Solved

Enter Parameter Value FOR DATE and FORMAT?!

Posted on 2002-06-24
3
881 Views
Last Modified: 2012-05-04
Hi.

I have a strange situation in one of my databases. When I Insert Date and Time into its reports by using the Insert/Date and Time from the Menu bar, it asks me to "Enter Parameter Value" for Format, and then for Date, in two separate dialogue boxes, upon opening the Report. If I click OK, only "#Name?" appears in the report. In other words, the database doesn't seem to recognize these two functions.

This is the Data expression that Access is generating automatically:

=Format(Date(),"Long Date") & " " & Format(Time(),"Long Time")

I tried many things, to no avail, such as Referencing more items in the VBA Editor's Tools Menu, changing the Start-Up options for the database, and creating a few new Reports using its own Wizard. But apparently this database does not recognize the Date and Format functions at all. So far, N0W() has solved the problem [which I think is from the same library as the other two], but it is not a complete solution, of course. Interestingly enough, the other databases that I have created don't seem to have this problem, as the Insert Date and Time seems to work OK, generating the same expression, and yielding full day, date and time in the report.

Do you know what causes this behavior and how is it possible to solve the problem?

Thanks in advance for your input.

Cordially,
Akhlaghi
0
Comment
Question by:akhlaghi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 200 total points
ID: 7103379
it would appear that you may have a "broken reference" in your MDB.

Open ANY Form in design mode, and then open the Code Module for that form.  On the Menu Bar, click on Tools/References.  You will then be shown a dialog box which will allow you to add or delete references from your form.  You will probably find AT LEAST one entry which is marked MISSING.  Make note of that reference (what is it pointing to), then UNSELECT if (click on the Check box at the left, to UNCHECK that box), then click the OK button.

Noe Open the References dialso AGOAN, and scrool down to find the Reference that you JUST UNSELECTED, and Select it Again (make sure that the Check Box IS CHECKED). Now click on the OK button, and you should back in business.

I cannot tell you what caused the BROKEN reference, but I have seen this scenarion often enough to let you know that it happens more frequently that it should.

Arthur Wood
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 7103380
If all else fails, then change to VBA.DATE() and VBA.FORMAT(...)
0
 

Author Comment

by:akhlaghi
ID: 7103552
Dear Arthur;

Thanks so very much for your comments. The first solution worked: the MISSING Referenced item was an Animation GIF control, that should have been lost during a recent HD replacement. Since it was not used in my DB, I think the main problem was its order: it was placed above some of the main references, in order of priority. In any case, after deselection, it no more appears in the selection dialogue box.

Best,
Akhlaghi
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question