Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Modiefied 1

Status
Not open for further replies.

krnsmartazz

Technical User
Dec 13, 2001
134
US
How do i make a text box store when i laswt edited a record?
 
You can do this at form level.

Place a txtbox on the form (it can be hidden if desired), set the Control Source for the txtbox to a Date/Time field in the table to store the info. Use the form's Before Update event to populate the txtbox.

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.YourTxtBoxName = Now()
End Sub

(change "YourTxtBoxName" to the name of the added txtbox)

The On Before Update event of the form will only fire if it is a new record or if the existing record has been altered.

HTH
RDH Ricky Hicks
Birmingham, Alabama


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top