either one of 2 forms can update the field

F

Frank Situmorang

Hello,

In one form I have the field to show if there is an update, the date will
show the last update, therefore I made this sub:

Private Sub Form_BeforeUpdate(Cancel As Integer)
' Update DateUpdated field
Me!DateUpdated = Date
End Sub

I need also to make the like VBA in the other form which is based on other
query. My question is can I make in other form like this again?

Private Sub Form_BeforeUpdate(Cancel As Integer)
' Update DateUpdated field
Me!DateUpdated = Date
End Sub

Thanks for any idea.

Frank
 
D

Douglas J. Steele

That's fine. Doesn't matter how many forms are updating the same table: set
the DateUpdated field from each, and the last one to fire wins!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top