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

If statement in query based on control value

Status
Not open for further replies.

wokkie

Programmer
May 9, 2003
52
GB
Hi,

I am using a parameter query in Access based on values on a form.

I want to use an if statement to determine which part of the query is ran.

i.e.

if forms!frm.control = "this" then
select * from tbl
else select * from tbl2

How do I do this?

Thanks

Ian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top