I have posted this to the forms forum, but I am posting here as it has gotten to be a code problem now.
I get this error: "Invalid use of '.', '!', or '()' in query expression
'newagentlist.*
where newagentlist.[agent code] = " & "CBL - Agent 144"'."
On this code:
I THINK this has something to do with how I am concatenating my query, but I can't find it. Unfortunately the error is not specific enough to point me in the right direction and the VBA editor in 97 is not as sophisticated as Newer versions. Any help will be appreciated.
Thanks, Ken
I get this error: "Invalid use of '.', '!', or '()' in query expression
'newagentlist.*
where newagentlist.[agent code] = " & "CBL - Agent 144"'."
On this code:
Code:
strSQL = "Insert into t" & vbCrLf & "Select newagentlist.*" & vbCrLf & "where newagentlist.[agent code] = " & """" & AgentName & """" & vbCrLf & "From newagentlist;"
I THINK this has something to do with how I am concatenating my query, but I can't find it. Unfortunately the error is not specific enough to point me in the right direction and the VBA editor in 97 is not as sophisticated as Newer versions. Any help will be appreciated.
Thanks, Ken