Select table1.var1, table2.var2 From table1 WHERE table1.var1=12345;
I want to be able to substitute anything I want for '12345' when calling it from a procedure. I tried making a recordset within the procedure, but the SQL string I use it in doesn't recognize it (i.e., "Select rstTest.var1. . .")