NOTE: the following is predicated on the assumption that you are using a
form for data entry. Your ARE using a form, right?!
In the checkbox's AfterUpdate event, add code to "push" the current date
into the date control. If you only need the date, use Date() ... if you
need date & time, use Now().
Don't sweat the () after Date() -- Access usually throws that away.
The code in your post didn't have any
End If
Does the code in your procedure have this?
The error message you received implies that Access is mis-interpreting the
names of the fields you are giving it. To avoid ambiguity, you might want
to rename the controls something other than the name of the field that the
control holds. That's why I was using "chkYourControlName" (for a checkbox)
and "txtYourDateControl" (for a textbox).
Good luck
Jeff Boyce
<Access MVP>
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.