REAbernathy
New member
- Local time
- Today, 14:54
- Joined
- Aug 16, 2012
- Messages
- 3
I am getting a Run-Time Error 3131
Syntax Error is From clause
Here is the code that I am trying to run and i cant figure this out.......PLEASE Help...
Dim strSQL As String
strSQL = " SELECT FirmNumber, NumberofAccounts, EmployeeID, ErrorCodeDescription, " & _
" ErrorCodesandCorrections , Agreements, TypeofCommunication, Time, OpenedDate FROM TrackingSystem3 " & _
" INTO TempReport_Table from TrackingSystem3 " & _
" WHERE NumberofAccounts = (SELECT Max (NumberofAccounts) from TrackingSystem3) And Time = (SELECT Max (Time) from TrackingSystem3); "
DoCmd****nSQL strSQL
Syntax Error is From clause
Here is the code that I am trying to run and i cant figure this out.......PLEASE Help...
Dim strSQL As String
strSQL = " SELECT FirmNumber, NumberofAccounts, EmployeeID, ErrorCodeDescription, " & _
" ErrorCodesandCorrections , Agreements, TypeofCommunication, Time, OpenedDate FROM TrackingSystem3 " & _
" INTO TempReport_Table from TrackingSystem3 " & _
" WHERE NumberofAccounts = (SELECT Max (NumberofAccounts) from TrackingSystem3) And Time = (SELECT Max (Time) from TrackingSystem3); "
DoCmd****nSQL strSQL
Last edited: