If anyone knows the syntax to, say compare, a variable in the VBA code with a field value in a table using a SELECT Query please write me back and let me know. I'm not sure if it is possible to even reference that variable in a query. Any info will help. Thank you in advance.