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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Queries In Multiple Forms

Status
Not open for further replies.

boblovesyousomuch

Programmer
Dec 2, 2003
27
GB
Hello,

I currently use a stored query in a form which performs a function that I would like to use in other forms. Ath the moment I use:

SELECT .. FROM .. WHERE Agent = [Forms]![FrmAgent]![AgentList]

This works fine but I want to be able to call this query in other forms that use the same 'AgentList'. I thought I would be able to write:

Me![AgentList]

but this does not work.

Any ideas?

Thank you in advance

Carl
 
Morning Carl
thought about packing it in a modul and calling the modul in each form. (Function)

just a thought
have a nice day

Mark
 
Am I right in saying i should paste the SQL query code in a module and just call it each time?

Just to clarify.

Sounds good to me though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top