Solved

Enter Parameter Value FOR DATE and FORMAT?!

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
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…
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…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

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