Solved

Enter Parameter Value FOR DATE and FORMAT?!

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now