Solved

Parameter query in form asks for parameter twice.

Posted on 2003-12-09
8
394 Views
Last Modified: 2008-02-01
I have a subform based on a parameter query. When I open the form, I am prompted for the parameter. When the form opens, I am prompted for the parameter again. How can I get this to work with just one prompt for the parameter?

Thanks....

Kathleen
0
Comment
Question by:kbutler
8 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 250 total points
ID: 9909567
0
 

Author Comment

by:kbutler
ID: 9909838
I created the form and query as the link suggested. How do I get behind the O.K. button on the pop up form? There is not an event procedure for "on o.k", and you can't right click on it since you can't get to it in design mode.

 Also, the parameter dialogue box asks for:  forms!name of form!control. This doesn't look so good. Is there a way to change that?
0
 
LVL 26

Assisted Solution

by:Alan Warren
Alan Warren earned 250 total points
ID: 9910624
Hi Kathleen,

Can you post the sql script from your parameter query for your original form please?
To view query sql script:
Open the query in design view > Menu > View SQL

Alan :)
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:kbutler
ID: 9913635
SELECT ContractHistoryTable.ContractYear, StudentTable.[Current Grade Level], [StudentLastName] & ", " & [StudentFirstName] AS StudentName, StudentTable.[Teacher/Section], StudentTable.Status
FROM StudentTable RIGHT JOIN ContractHistoryTable ON StudentTable.StudentSSN = ContractHistoryTable.StudentSSN
WHERE (((ContractHistoryTable.ContractYear)=[Enter Contract Year]) AND ((StudentTable.Status)="Accepted" Or (StudentTable.Status)="Active" Or (StudentTable.Status)="New Student" Or (StudentTable.Status)="Returning Student"))
ORDER BY [StudentLastName] & ", " & [StudentFirstName];

Thanks for your help!

Kathleen
0
 

Author Comment

by:kbutler
ID: 9925417
Hey, I fixed the sitution. I dropped the parameter query and added an unbound field to the main form which provides input to the subform. Sorry I didn't think of that sooner.

Kathleen
0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 9925451
Hi Kathleen,

sorry didn't realise you had posted your sql, been swapping ISP's here, msg is probably stuck in the tube somewhere.

Anyway glad you got it solved!

Alan :)
0
 
LVL 32

Expert Comment

by:jadedata
ID: 10271910
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: shivsa {http:#9909567} & alanwarren {http:#9910624}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jadedata
EE Cleanup Volunteer
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

825 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