Could you post a code snippet? Thank you very much for testing this out for me.
This SQL statement returns a populated recordset in ADO & DAO (both
fields are INTEGER's):
"SELECT EditSessionID, MaxSaveSequence FROM SessionInfo" with or
without an ending ";"
This one returns an empty recordset in ADO and an inaccessible UserID
field in DAO (UserID is TEXT):
"SELECT EditSessionID, UserID FROM SessionInfo" with or without an ending ";"
{frmEditWatch}
Private Sub cmdInitEvents_Click()
...
Call WriterEvents.InitEvents("Provider=MSDASQL.1;Driver={SQLite3
ODBC Driver};" & _
"Database=C:\MADb\testDb_LF.sqlite;" & _
"StepAPI=0;SyncPragma=;NoTXN=0;Timeout=;" & _
"ShortNames=0;LongNames=0;NoCreat=0;NoWCHAR=0;" & _
"LoadExt=libspatialite-2.dll;", strGUID)
...
{clsLockWriter}
Public Function InitEvents(ByVal ConnectionStr As String, _
ByVal MXDSessionGUID As String) As Long
...
adoCon.Open ConnectionStr
...
I copied the dll's in the spatialite-2.2-win-libs/dll folder to
C:\WINDOWS\system32, and didn't register any of them. Specifying the
Provider for ODBC connections isn't required, since it is the default
provider. The curly brackets aren't necessary either. You are
missing an ending semicolon, not sure about that? The other parms
should be optional? Have you tried the SQLite SQL function
'load_extension()'? You can use it within a Select statement. My
guess is that you need the other dll dependencies(?) located along
with the 'libspatialite-2.dll'. Let us know if you get the SQLite
ODBC Driver to successfully load 'libspatialite-2.dll' from a
different location (not sys32). Good luck.