Private Sub PopulateData()
DBClass.DBServer = DBPath
Dim DBClass As New clsDB.clsDatabase
Try
MsgBox(LOG.WriteErrLog(0,
Exit SubEnd If Columns.Add("Car Park Access Rights" If .Rows.Count > 0 ThenReDim aStfNo(.Rows.Count - 1) Mid(.Rows(icnt).Item(jcnt), 5, 2) & "/" & _ Mid(.Rows(icnt).Item(jcnt), 1, 4 .Rows(icnt).Item(jcnt) = GetDoorAccess(Trim(.Rows(icnt).Item(0))) .Rows(icnt).Item(jcnt) = Else End If .Rows(icnt).Item(jcnt + 1) = .Rows(icnt).Item(jcnt + 1) = GetCPAccess(Trim(.Rows(icnt).Item(0))) .Rows(icnt).Item(jcnt) = .Rows(icnt).Item(jcnt) = Trim(.Rows(icnt).Item(jcnt)) .Columns.Remove( dgvBlock_Extend.DataSource = dsBlock_Ext.Tables(0) LOG.WriteErrLog(0, DBClass.Close() .Rows(icnt).Item(jcnt) = Trim(.Rows(icnt).Item(jcnt))
ReDim aCardNo(.Rows.Count - 1)
For icnt As Integer = 0 To .Rows.Count - 1
For jcnt As Integer = 0 To .Columns.Count - 1If jcnt = 0 Then
aCardNo(icnt) = Trim(.Rows(icnt).Item(jcnt))
.Rows(icnt).Item(jcnt) = Trim(.Rows(icnt).Item(jcnt))
.Rows(icnt).Item(jcnt) = Mid(.Rows(icnt).Item(jcnt), 7, 2) & "/" & _
thanx in advance =)
Karthikeyan AnbarasanPosted Apr 8, 2011, 2:03 AM
zatie pPosted Apr 4, 2011, 8:58 PM
now, in the date column, it will show blank cell. is it possible to show the date from database?
Suthish NairPosted Apr 4, 2011, 1:28 PM
vijayPosted Apr 4, 2011, 4:54 AM
clearly depicts your requirements...
your question is about date if you want display a string in date format,,use this code......
date="22-06-2010"
date=format(cdate(date),"dd/MM/yyyy")
MY BLOG