?
Solved

Enter Parameter Value FOR DATE and FORMAT?!

Posted on 2002-06-24
3
Medium Priority
?
941 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 800 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
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 …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

770 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