I am trying to make an If statement in a macro that will run a query based on a record in a table. The table contains one record with a 2 digit state code that is manually changed by the user, which determines how certain make table queries are run from a set of data. So I'd like the If statement macro to run certain queries based on this state code. The If statement won't let me enter the table and field names though. Please help. Let me know if this doesn't make any sense - I'm not new to access, but am still learning and definitely have a lot of trial and error.