I would like to include an option in an Access form that would allow the current date to be entered in a field box by just checking a box beside it -- doable?
I tried the "=now", but that did not seem to work -- the text box I am wanting to have updated is linked to a field in the master table with a date format -- should I xcahnge the format?
I typed exactly this in the "on click" event -- "=now(dd,mm,yy)"
I use a double click on the date type textboxes. If the TB is null, it puts today's date in it. If not it either advances the date by one or decreases the date by one day - whichever makes sense in your app.
private sub text0_dblClick()
if IsNull( me.text0) then
me.text0 = int(now())
else
me.text0 = me.text0 +1
endif
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.