
10-25-2002, 12:41 AM
|
 |
Senior Contributor
|
|
Join Date: Sep 2002
Location: Brisbane, Australia
Posts: 1,209
|
|
|
hi,
I created a simple form based on a simple table with a flexgrid named grdData. The first field in the table is a date/time field. i put this in my load event and it seems to work fine for me:
Private Sub Form_Load()
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("Table1")
grdData.Row = 1
grdData.Col = 0
grdData.Value = Format(rs![theDate], "dd/mm/yyyy")
grdData.Col = 1
grdData.Value = rs![strDate]
grdData.Col = 2
grdData.Value = rs![theNumber]
rs.Close
End Sub
|
__________________
Cheers,
Peter W.
|