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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Today's Date in a Report

Status
Not open for further replies.

smdemo

Programmer
Sep 15, 2002
63
US
I've taken someone else's database and I'm trying to enter the date in the report and its giving me an error.

I created a text box with the following entered in the Control Source...

=Format(Date(),"mmmm d"", ""yyyy")

When I go to run the report it asks me to enter a "Format" and then a "Date".

I've tried it on other reports of databases I have created and it works fine. Any ideas?

 
Opps, I'm not sure how those extra quotes got in there on my post. I do have what you suggested and its not working. Its also telling me that I have entered invalid syntax when I try to save it and that I might have an invalid comma or ommitted quotation marks. I know that's not the case since the same control source works on all my other databases.
 
the same control source works on all my other databases

Are these other databases on the same PC? If they are on different PCs, there may be an issue with missing DLLs, or perhaps a difference in the version of Access between PCs.
 
Try Now() instead of Date(), some computers do not have a file int the microsoft office program files folder and the Date() function does not work well.

I had this problem before and tried the Now() funtion and works well in all computers.
 
Thank you rjoubert, you are right. The database was created using a newer version than I have. They converted down to the version I am running. I'll never understand why companies use different versions in different departments.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top