Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date issue

Status
Not open for further replies.

chipearly

Technical User
Joined
Jun 19, 2003
Messages
12
Location
US
I have een searching through the forum, but I still have found no anser for this. I have created a table that includes dates on it, and have set to default to current date, but I have created a data acces page so that other users could access it easily. When I did this, the default date does not appear. Can anyone help?
 
The default value property is only for new records. If you are looking at existing records and you want a text box or control to show the current date, then you will need to put it in the control source as

=Date()

or

=Now()

Date for Date only and Now for Date and Time.

If the control is a label then you will need to set the caption property of the label in the form's On Load or On Open even to one of the above functions.

Hope this helps...




ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
Thanks for the help, I was not entering the = , I do have one other question though, in this same access page I am trying to use the Autonumber, but it jsut doesn't happen, actually it will not let me enter anything into the block. Any suggestions?
 
Actually I have a correction, the number does not appear until I save the file, why is this?
 
That way it does not waste numbers and there will be no gaps in your sequence.



ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
I want to thank you for all of the help, I am sure that I will be coming to this forum more often
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top