Calling Query from Query

B

Brad

Is it possible to call one query from another?

If I have a query named GetStuff like:
PARAMETERS [@ID] Long;
select stuff from table_name where id=@ID;

How do I call this from another query? I saw another post
that showed this method:
select * from Call GetStuff(1);
but that doesn't work.

If this is not possible, is it possible to call a VBA
function from a query?
 
J

Jeff Boyce

Brad

If you're working in the Access user interface, you can simply design a new
query and select the old (GetStuff) query as the "source" you're querying.

Or have I misunderstood your question.

Good luck

Jeff Boyce
<Access MVP>
 
G

Guest

How then do I pass the parameter to the "GetStuff" query
(I can't have an input box pop up)?
If you're working in the Access user interface, you can simply design a new
query and select the old (GetStuff) query as the "source"
you're querying.
 
J

Jeff Boyce

If the input box pops up for the GetStuff query, it will pop up for any
query based on GetStuff.

If you are saying you DON'T want an input box to pop up, how do you now get
the parameter to your GetStuff query?

Good luck

Jeff Boyce
<Access MVP>
 

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