S
sunil
Hello All,
Private Sub Form_Load()
Dim rstDoc As Object
Set rstDoc = CurrentDb.OpenRecordset("CodeTable")
If rstDoc.StartDate = "1/1/1111" Then
'update startdate to present date
MsgBox (rstDoc.RecordCount)
rstDoc.Edit
rstDoc.Update
MsgBox ("hai")
End If
End Sub
this is what i want to do
Private Sub Form_Load()
Dim rstDoc As Object
Set rstDoc = CurrentDb.OpenRecordset("CodeTable")
If rstDoc.StartDate = "1/1/1111" Then
'update startdate to present date
MsgBox (rstDoc.RecordCount)
rstDoc.Edit
rstDoc.Update
MsgBox ("hai")
End If
End Sub
this is what i want to do