473,624 Members | 2,566 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 tblPatientProfi le

I can't figure out why this is popping up
Ken
Mar 24 '08 #1
10 1770
NeoPa
32,567 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
'tblPatientProf ile'
Mar 26 '08 #3
NeoPa
32,567 Recognized Expert Moderator MVP
So the title is Missing Parameter and the contents, pasted in exactly as requested, is 'tblPatientProf ile' (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 tblPatientProfi le
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,567 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]![frmPatientProfi le]![frmInterviewRec ord 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,567 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 (tblPatientProf ile). 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

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

Similar topics

5
16243
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 Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services Manager."
2
5828
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: Parameter has no default value. But it works fine in Access when I run the query from there and just hit
2
1677
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 it runs, a dialog box instructing me to "Enter the make". It is expecting me to type in something like "Chevy Caprice". The dialog box has 2 buttons: OK and Cancel. If I enter nothing at all and click
4
4864
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 parameter. For example, FormOptions formOptions = new FormOptions(); if (formOptions.ShowDialog(this) == DialogResult.OK) {
7
4997
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
2
6372
by: Roger | last post by:
Anyone know how to pass a parameter to a query via a report in Access 2003?
3
1606
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 wasnt as complicated as I thought it would be. Now I want to create a web part, that connects and uses our database to show data depending on what user it is. I know theres the dataview controls and all that, but I dont want to display all...
2
3259
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 expressions reference another column in the same query, it causes the dialog box to appear for each parameter before displaying the query output, even though no parameter values are required. For example, here are four expressions in my query: ...
4
1392
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 box. When she hit the exit button of a search form, this dialog box would come up sometimes. There doesnt appear to be any consistency in the search criteria or actions taken on the form that cause this message to come up, and I cant get it to come up...
0
8249
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8348
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2613
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 we have to send another system
2
1493
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.