Solved

Enter Parameter Value FOR DATE and FORMAT?!

Posted on 2002-06-24
3
868 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
  • 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

831 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