S
shea@pitt
I have a macro can run one of 2 queries. I want to use the Conditions in my
macro to determine which query to run.
this is what it look like:
Run Query ([Forms]![frmSelectCriteria]![cboTeam]) OpenQuery-
(qryNotesbyTeam)
([Forms]![frmSelectCriteria]![cbocategory]) OpenQuery-
(qryNotesbyCategory)
I have this Run Query linked to my OK button on my dialog form. when
cboTeam is not valued, qryNotesbyTeam still runs 1st. If I put in a
statement to stopmacro after the 1st query, the 2nd query will never run,
which means if I value cboCategory, I will never get my query results.
I try entering IF or WHERE and I get error "the expression you entered has a
function name that Microsoft Access can't find."
Any help will be greatly appreciatged
macro to determine which query to run.
this is what it look like:
Run Query ([Forms]![frmSelectCriteria]![cboTeam]) OpenQuery-
(qryNotesbyTeam)
([Forms]![frmSelectCriteria]![cbocategory]) OpenQuery-
(qryNotesbyCategory)
I have this Run Query linked to my OK button on my dialog form. when
cboTeam is not valued, qryNotesbyTeam still runs 1st. If I put in a
statement to stopmacro after the 1st query, the 2nd query will never run,
which means if I value cboCategory, I will never get my query results.
I try entering IF or WHERE and I get error "the expression you entered has a
function name that Microsoft Access can't find."
Any help will be greatly appreciatged