I am working on an access database where my queries are performing multiple calculations for financial analysis. In order to do these calculations, I have used the DLookup function and assigned the result to a variable and then performed calculations with these variables to get the financial metric I desire. My problem now is writing these metrics to a table.
Here's a short version of the code I'm trying to run:
strSQLCreate ="INSERT INTO tblTotalDealerMetrics([FSID])"&_
"VALUES(lngFSID);"
lngFSID is a variable defined in the code. I know that SQL requires different formats for strings, numbers, etc. but I can't seem to figure out what combination of ' " & to use for a variable. Any ideas?
Thanks in advance!
Here's a short version of the code I'm trying to run:
strSQLCreate ="INSERT INTO tblTotalDealerMetrics([FSID])"&_
"VALUES(lngFSID);"
lngFSID is a variable defined in the code. I know that SQL requires different formats for strings, numbers, etc. but I can't seem to figure out what combination of ' " & to use for a variable. Any ideas?
Thanks in advance!