Bounded Textbox

durdle

Registered User.
Local time
Today, 17:30
Joined
May 7, 2002
Messages
130
Hello,

I have a textbox bounded to a field back in my table. I want to place a command button next to the field to automatically populate today?s date. I have tried

txtdate.setfocus
txtdate.text = date

but this do not work.
Any ideas?

Chris
________
dc marijuana dispensaries
 
Last edited:
On the OnClick event of the button you could have something like

Me.txtdate = Date()

I think that should do it....
 
Oooops. Sorry Chris. Guess I should have double checked that before posting.

I'll try to look at that here in a little bit....

If anyone else has any ideas in the meantime.....
 
Is the field in your table that you want to put the date in set to recieve a date (date/Time)

??

Steve
 
Okay, I've attached a database.

I tried it both with the field as a text field and also as a date/time field and it didn't seem to make any difference. That bit of code should work for you.....

Compare with your database and see what's different. Make sure the name of the field you are referencing is correct.
 

Attachments

Users who are viewing this thread

Back
Top Bottom