J Johnson Mar 3, 2005 #1 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.
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.
K Ken Snell [MVP] Mar 3, 2005 #2 Use the SetValue action. To provide more info, you'll need to tell us more details.
J Johnson Mar 3, 2005 #3 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
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
K Ken Snell [MVP] Mar 3, 2005 #4 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)
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)
J Johnson Mar 4, 2005 #5 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 Click to expand... Click to expand...
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 Click to expand... Click to expand...