need yours help

A

avi

I have a form that contens list of prices. I wold like when i update the
filed of price that automatic will update the filed of date of typeing the
both in the some file (pro)
 
A

Arvin Meyer

avi said:
I have a form that contens list of prices. I wold like when i update the
filed of price that automatic will update the filed of date of typeing the
both in the some file (pro)

One line of code in the BeforeUpdate event:

Private Sub Form_BeforeUpdate(Cancel As Integer)
On Error GoTo Err_Handler

Me.txtDateUpdated = Date

Exit_Here:
Exit Sub

Err_Handler:
msgbox Error$
Me.Undo
Resume Exit_Here
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

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

Top