Date field

T

Tom

I have a 'Date' field in a subform. Is it possible, if the
current day comes up automatically in that field, when an
user types in the next 'Text' field. IF YES, HOW?
 
P

PC Datasheet

Tom,

You shouldn't use 'Date' for a field name. Date is a reserved word and will
consequently give you a problem at some point.

To do what you want, put this code in the AfterUpdate event of the text field:

Me!NameOfDateTextBox = Date()
 
N

Nikos Yannacopoulos

Tom,

In the next Text field's properties, set the On Change event to run a macro
with a SetValue action, arguments:
Item: Date field name
Expression: = Date()

HTH,
Nikos
 

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