Link to home
Create AccountLog in
Avatar of friskee
friskee

asked on

MS Access 2003 and 2007 Add a checkbox then automatically update the date field with the current date

Need to know how to add a checkbox, and when the check box is checked, insert current date into the date
field box.  How do I do the statement in the expression builder?
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of friskee
friskee

ASKER

It's not working- here's the code:
Sub ChkSold_AfterUpdate()
If Me.ChkSold = True Then
        Me.txtSoldDate = Date
    End If
End Sub

txtSoldDate control source is the sale date field in my sale table
txtSoldDate is the name
What else could I be doing wrong?
This is fairly standard code.
I can't see a reason why it might not work.

Please Post a sample of this database.

JeffCoachman
Avatar of friskee

ASKER

I tried it again.  IT WORKS-  thank you that answer was straight forward and simple.  increased points
come back and answer me anytime-
Avatar of friskee

ASKER

Simple fast response- Wonderful!