Solved

Parameter query in form asks for parameter twice.

Posted on 2003-12-09
8
393 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

920 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

14 Experts available now in Live!

Get 1:1 Help Now