I have a button on the form that I would like to run a simple sql select statement and I can't seem to get mine to work. I need to run one query with different criterias so I thought I would use SQL opposed to have 10 different variances of the same query. The query I have as the base query is qryReps. Each button on my form is going to run qryReps with different location codes. FOr Example button "REP ONE" I need to run qryREP where loccode = "1". Button two needs to run qryREP where loccode="4". And so forth. I would runsql but it is telling me it needs to be an action query and not a simple select query.
Thanks!!!
Thanks!!!