eggwater
life as a rehearsal
- Local time
- Today, 18:55
- Joined
- Aug 14, 2003
- Messages
- 69
I'm building a form and I have the following code which works to a degree:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.date_stamp = Now()
Me.Export_ctrl = "2"
End Sub
the code adds a modification date if a record is modified and also flags the record as a '2' which means it has been amended..this works...
however... when I add a new record instead opf saving it as a '1' flag (i.e. new) it saves it as a '2'
Is there a way of coding that will determine whether the record is new or modified?
cheers in advance
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.date_stamp = Now()
Me.Export_ctrl = "2"
End Sub
the code adds a modification date if a record is modified and also flags the record as a '2' which means it has been amended..this works...
however... when I add a new record instead opf saving it as a '1' flag (i.e. new) it saves it as a '2'
Is there a way of coding that will determine whether the record is new or modified?
cheers in advance