kbutler
asked on
Parameter query in form asks for parameter twice.
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
Thanks....
Kathleen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
SELECT ContractHistoryTable.Contr actYear, StudentTable.[Current Grade Level], [StudentLastName] & ", " & [StudentFirstName] AS StudentName, StudentTable.[Teacher/Sect ion], StudentTable.Status
FROM StudentTable RIGHT JOIN ContractHistoryTable ON StudentTable.StudentSSN = ContractHistoryTable.Stude ntSSN
WHERE (((ContractHistoryTable.Co ntractYear )=[Enter Contract Year]) AND ((StudentTable.Status)="Ac cepted" Or (StudentTable.Status)="Act ive" Or (StudentTable.Status)="New Student" Or (StudentTable.Status)="Ret urning Student"))
ORDER BY [StudentLastName] & ", " & [StudentFirstName];
Thanks for your help!
Kathleen
FROM StudentTable RIGHT JOIN ContractHistoryTable ON StudentTable.StudentSSN = ContractHistoryTable.Stude
WHERE (((ContractHistoryTable.Co
ORDER BY [StudentLastName] & ", " & [StudentFirstName];
Thanks for your help!
Kathleen
ASKER
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
Kathleen
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 :)
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 :)
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
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
ASKER
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?