-
1
- #1
is it possible to use a variable in an sql statement? something like:<br>
<br>
dbs.Execute "SELECT RegSum1.TMCode , " _<br>
& "field AS VARIABLETotRec, " _<br>
& "[TotOdue]/[TotRec] AS VARIABLEOduePcnt INTO" _<br>
& "[VARIABLEsum1] FROM RegSum1; <br>
<br>
what i've tried hasn't worked; if this just isn't possible i need to move on and just create individual ones for each case.<br>
<br>
THANKS!<br>
<br>
dbs.Execute "SELECT RegSum1.TMCode , " _<br>
& "field AS VARIABLETotRec, " _<br>
& "[TotOdue]/[TotRec] AS VARIABLEOduePcnt INTO" _<br>
& "[VARIABLEsum1] FROM RegSum1; <br>
<br>
what i've tried hasn't worked; if this just isn't possible i need to move on and just create individual ones for each case.<br>
<br>
THANKS!<br>