Date Set

  • Thread starter Thread starter Johnson
  • Start date Start date
J

Johnson

Will someone tell me how to use a macro in Access 2000 to set the date in a
form field when the macro is run. Thanks in advance.
 
Use the SetValue action. To provide more info, you'll need to tell us more
details.
 
I would like to have a checkbox on a form that when checked the current date
and time is inserted into a field on the form.
Thanks
 
Put the macro on the AfterUpdate event of the checkbox control.

The macro's actions would be this:

Action: SetValue
Item: [NameOfTextboxControlOnForm].Value
Expression: IIf([NameOfCheckboxControlOnForm].Value=True,Now(),Null)
 
Beautiful, thanks for the help.
Ken Snell said:
Put the macro on the AfterUpdate event of the checkbox control.

The macro's actions would be this:

Action: SetValue
Item: [NameOfTextboxControlOnForm].Value
Expression: IIf([NameOfCheckboxControlOnForm].Value=True,Now(),Null)


--

Ken Snell
<MS ACCESS MVP>

Johnson said:
I would like to have a checkbox on a form that when checked the current
date and time is inserted into a field on the form.
Thanks
 
Back
Top