parameter of a query

G

giannis

I have make a query that ask a parameter (for criteria).
This query opens a form with criteria this parameter.
I need a label in this form that says the criteria (=parameter).
How can store the parameter of query in this label ?
 
J

JohnFol

Put the parameter in the query as a field. For example, try his in NWind

SELECT Employees.EmployeeID, [EnterEmployeeID] AS EnteredParameter,
Employees.LastName, Employees.FirstName
FROM Employees
WHERE ((([EnterEmployeeID])=[employeeid]));

You now have a field called "EnteredParameter" available to display on the
form
 
G

giannis

Thank you !!!
I didnt know the word "AS" in SQL .
JohnFol said:
Put the parameter in the query as a field. For example, try his in NWind

SELECT Employees.EmployeeID, [EnterEmployeeID] AS EnteredParameter,
Employees.LastName, Employees.FirstName
FROM Employees
WHERE ((([EnterEmployeeID])=[employeeid]));

You now have a field called "EnteredParameter" available to display on the
form



giannis said:
I have make a query that ask a parameter (for criteria).
This query opens a form with criteria this parameter.
I need a label in this form that says the criteria (=parameter).
How can store the parameter of query in this label ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top