K
Key
This is really doing my head in...
I have a field named 'lastupdate' which I need to display the current date
when a record is updated on my form 'clientDatabase'.
I have allready searched this site and everyone says to put some code in the
beforeupdate box of the form which displays the customer data. 'main_screen'
I have done the following:
Private Sub Form_BeforeUpdate(Cancel As Integer)
On Error GoTo BeforeUpdate_Err
' Set bound controls to system date
lastupdate = Date
BeforeUpdate_End:
Exit Sub
BeforeUpdate_Err:
MsgBox Err.Description, vbCritical & vbOKOnly, _
"Error Number " & Err.Number & " Occurred"
Resume BeforeUpdate_End
End Sub
When I have entered the "lastinput = date()" ithe VBeditor removes the "()".
The problem is this....
when i have updated a record and click to go to next record I get the message
"cant find the field "date" referred to in your expression"
what am I doing wrong :-(
Any help would be very much appreciated
Regards
Key
I have a field named 'lastupdate' which I need to display the current date
when a record is updated on my form 'clientDatabase'.
I have allready searched this site and everyone says to put some code in the
beforeupdate box of the form which displays the customer data. 'main_screen'
I have done the following:
Private Sub Form_BeforeUpdate(Cancel As Integer)
On Error GoTo BeforeUpdate_Err
' Set bound controls to system date
lastupdate = Date
BeforeUpdate_End:
Exit Sub
BeforeUpdate_Err:
MsgBox Err.Description, vbCritical & vbOKOnly, _
"Error Number " & Err.Number & " Occurred"
Resume BeforeUpdate_End
End Sub
When I have entered the "lastinput = date()" ithe VBeditor removes the "()".
The problem is this....
when i have updated a record and click to go to next record I get the message
"cant find the field "date" referred to in your expression"
what am I doing wrong :-(
Any help would be very much appreciated
Regards
Key