View Full Version : Button and timestamp


kermit95
04-16-2001, 10:13 PM
Hi

I need some hints on how to change a yes/no field to yes by the use of a button in a Form. And how to get a timestamp to a no edit textfield in the form, the timestamp need to get the date and time the button (the button from the top) is clicked.

Thankfully Jocke

charityg
04-17-2001, 09:04 AM
Button_onClick()
YesNofield=-1 'sets field to yes
timestamp.locked=false 'allow edits
timestamp=now() 'set time
timestamp.locked=true 'lock field again
end sub

kermit95
04-17-2001, 09:50 PM
Thanx alot, it worked great!