J
john
I am trying to us Date() in the following Access 2000 code:
Private Sub cboStatus_AfterUpdate()
If Me.cboStatus = "Closed" Then
Me!txtDateCompleted = Date()
End If
End Sub
...but when I attempt to save the routine, the () dissapears. Then when
I run the code, access generates an error stating it's unable to find a
field name called Date. Using Now() works but I just need the date.
Besides, if I use Now() and then attempt to edit this field, it
displays the entire date and time, even though the format and input
mask is set to Medium Date.
Any assitance is appreciated.
Private Sub cboStatus_AfterUpdate()
If Me.cboStatus = "Closed" Then
Me!txtDateCompleted = Date()
End If
End Sub
...but when I attempt to save the routine, the () dissapears. Then when
I run the code, access generates an error stating it's unable to find a
field name called Date. Using Now() works but I just need the date.
Besides, if I use Now() and then attempt to edit this field, it
displays the entire date and time, even though the format and input
mask is set to Medium Date.
Any assitance is appreciated.