Accès à "Invalid SQL Statement"
Solved
Lazarey
Posted messages
3255
Registration date
Status
Member
Last intervention
-
yg_be Posted messages 23437 Registration date Status Contributor Last intervention -
yg_be Posted messages 23437 Registration date Status Contributor Last intervention -
Hello everyone !!!!!!
I have a big problem with Access XP.
Here is my code:
It gets stuck on the rs1.open and tells me that the "SQL statement is not valid," even though it's not a SQL query at all, but VBA code.
I think it's a problem with an option that needs to be checked in the preferences, because from what I remember, this piece of code works fine on Access 2000.
Thanks to anyone who will help me !!!
I have a big problem with Access XP.
Here is my code:
Dim maconnexion As New Connection Dim rs1 As New Recordset Set maconnexion = CurrentProject.Connection rs1.LockType = adLockOptimistic rs1.CursorType = adOpenKeyset rs1.ActiveConnection = maconnexion rs1.Source = "Contacts A" rs1.Open
It gets stuck on the rs1.open and tells me that the "SQL statement is not valid," even though it's not a SQL query at all, but VBA code.
I think it's a problem with an option that needs to be checked in the preferences, because from what I remember, this piece of code works fine on Access 2000.
Thanks to anyone who will help me !!!
Configuration: Windows XP Firefox 2.0.0.14