Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Defined Variable via Query(Via pop up box) in Access

Status
Not open for further replies.

Lynux

MIS
Aug 3, 2001
33
US
I am wanting to have a user defined variable name in an access query (so that a pop up box prompts user for input)

here is what I have:
SELECT *
FROM ORD00000
GROUP BY ORD00000.ITEM_NO, ORD00000.CAT_TYPE, ORD00000.PRE_EST, ORD00000.FIN_ORD, ORD00000.LST_YR_TOT;

here is what I Need:
SELECT *
FROM &user_defined&
GROUP BY &user_defined&

Thanks in advance!
=================================
Imagination is more important than knowledge.
(A.E.)
 
Paste you SQL statement in a new query. Switch to design view. In the criteria field for the field you want an input for, type soemthing like:

[Please enter a value]

When you run the query, an input box will pop up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top