473,499 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Confused by parameter error dialog

47 New Member
I am running a report in Access. When I click to run report, a dialog comes up for missing parameter, showing just the name of a table in the box.

Now if I just click ok without typing anything in, the report dispays perfectly.

But user wants it gone, and I am at a loss. Here is click Event code:
Expand|Select|Wrap|Line Numbers
  1.  Dim stDocName As String
  2.  
  3.     Dim strFilter As String
  4.  
  5.     stDocName = "rptPatientProfilebyInterviewID"
  6.  
  7.     DoCmd.OpenReport stDocName, acPreview
  8.  
and here is SQL generated by qry builder:

Expand|Select|Wrap|Line Numbers
  1. SELECT tblPatientProfile.*, tblInterviewRecord.*
  2. FROM tblPatientProfile INNER JOIN tblInterviewRecord ON tblPatientProfile.PatientProfileID = tblInterviewRecord.PatientProfileID
  3. WHERE (((tblInterviewRecord.InterviewID)=[Forms]![frmPatientProfile]![frmInterviewRecord subform]![InterviewID]));
  4.  
parameter dialog, comes up and shows tblPatientProfile

I can't figure out why this is popping up
Ken
Mar 24 '08 #1
10 1741
NeoPa
32,557 Recognized Expert Moderator MVP
There's nothing in here I can see which would cause that Ken.

Can you copy the exact message from the error message box. If this can't throw any light we may have to look at using the Access Documentor function and searching through the results.
Mar 26 '08 #2
akirekab
47 New Member
The dialog, box, has nothing in it except the table name
'tblPatientProfile'
Mar 26 '08 #3
NeoPa
32,557 Recognized Expert Moderator MVP
So the title is Missing Parameter and the contents, pasted in exactly as requested, is 'tblPatientProfile' (including the quotes)?

This is leading to uncharted territory then, and we will need to use the Access Documenter feature to discover what is referring to this.
Mar 26 '08 #4
akirekab
47 New Member
Actually it is titled
Enter Parameter Value

Then above the input of dialog box it says tblPatientProfile
with no quotes

it has the normal ok button, and when I click it, without entering anything, the report prints or previews normally and correctly.

Thanks
Ken
Mar 26 '08 #5
NeoPa
32,557 Recognized Expert Moderator MVP
Ah. That's starting to make some sense.

Please try to run the SQL you posted, natively (as a query rather than as a data source for the report) and describe what you get.
Mar 26 '08 #6
akirekab
47 New Member
Ok I ran the query,
Expand|Select|Wrap|Line Numbers
  1. SELECT tblPatientProfile.*, tblInterviewRecord.*
  2. FROM tblPatientProfile INNER JOIN tblInterviewRecord ON tblPatientProfile.PatientProfileID = tblInterviewRecord.PatientProfileID
  3. WHERE (((tblInterviewRecord.InterviewID[b])=[Forms]![frmPatientProfile]![frmInterviewRecord subform]![InterviewID]));
Got dialog asking for the

[Forms]![frmPatientProfile]![frmInterviewRecord subform]![InterviewID]));

which I entered and got the correct reply.
A combination of fields from the two tables.

It normally gets that parameter from the form which originates the report request.
Mar 27 '08 #7
akirekab
47 New Member
Sorry had typo in the SQL in frame above

Expand|Select|Wrap|Line Numbers
  1. SELECT tblPatientProfile.*, tblInterviewRecord.*
  2. FROM tblPatientProfile INNER JOIN tblInterviewRecord ON tblPatientProfile.PatientProfileID = tblInterviewRecord.PatientProfileID
  3. WHERE (((tblInterviewRecord.InterviewID)=[Forms]![frmPatientProfile]![frmInterviewRecord subform]![InterviewID]));
  4.  
Mar 27 '08 #8
NeoPa
32,557 Recognized Expert Moderator MVP
Ken, that's clearly expressed and I now know that the problem is not in the SQL itself.

That makes life harder of course, so we now need to look at the Documenter facility. It's a neat trick anyway so may be of more general interest.

From your main database window select Tools / Analyse / Documenter.
Makes sure at this stage to include everything you can. Kitchen sink optional.

When you have created the document save it and then open it in Word (convert from RTF). Now search through the document for instances of the string (tblPatientProfile). This should find some less visible references which would take a deal of searching for (and digging around) in the main Access application.

You may find more items than you need and will need to ignore those elements which would not cause your problem.

Good luck, and let us know how you get on.
Mar 27 '08 #9
akirekab
47 New Member
NeoPa
I have looked over documenter, now should I be just checking the table, report and query I am worrying about or really check everything??

Ken
Mar 27 '08 #10
NeoPa
32,557 Recognized Expert Moderator MVP
For thoroughness, I would advise doing the whole lot. Also, it's hard to be more precise without the details in front of me.

Alternatively, you could try just the report itself and any related items (queries etc) first with a view to doing the whole lot later if nothing is uncovered. It's up to you.

When you have the (possibly enormous) document open in MS Word, simply do a search (Ctrl-F) for (tblPatientProfile) and examine all the occurrences found. You should find something that sets off alarm bells.

Let me know how you get on.
Mar 28 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

5
16212
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
2
5816
by: The Plankmeister | last post by:
Hi... I have a query which I'm accessing through PHP as a stored procedure. However, I need to be able not to pass a couple of parameters in certain situations. When I do this, I get an error: ...
2
1666
by: MLH | last post by:
I have the following code in an Access 97 procedure: MySQL = "INSERT INTO tblVehicleNames (VehicleMake) SELECT AS ;" DoCmd.SetWarnings False DoCmd.RunSQL (MySQL) DoCmd.SetWarnings True When...
4
4860
by: Ron Rohrssen | last post by:
I want to show a dialog and when the form (dialog) is closed, return to the calling form. The calling form should then be able to pass the child form to another object with the form as a...
7
4976
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
6359
by: Roger | last post by:
Anyone know how to pass a parameter to a query via a report in Access 2003?
3
1599
by: itfetish | last post by:
I've been programming a bit in PHP and then recently learnt classic ASP for projects at work, now I'm working on another project that they want done in .net. I've got my head around web parts, that...
2
3249
by: billtubbs | last post by:
Hi I am getting the common problem of the "Enter Parameter Value" dialog box, which pops up every time I execute a query. I built the query using the Expression Builder in Access. If any of my...
4
1384
by: jaegertw2 | last post by:
Hey guys, I have a weird one. My database has about 25 users, and today one of the users came to me and informed me she was getting an error message, which turned out to be query parameter dialog...
0
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.