S
Sergey Poberezovskiy
Hi,
I have an (update) query that utilizes my Custom VBA
function (BitAnd). I need to run this query from within
another database. The code (attached below) runs without
errors, but records do not update.
On another hand, when I step thru the code line by line,
everything seems to work just fine.
Could anyone please help?!!
The code:
Dim oAccess As Access.Application
Set oAccess = New Access.Application
oAccess.OpenCurrentDatabase vsDatabase
With oAccess.DoCmd
.SetWarnings False
.OpenQuery "qryUpdateTempScores"
End With
oAccess.CloseCurrentDatabase
Any help is greatly appreciated.
I have an (update) query that utilizes my Custom VBA
function (BitAnd). I need to run this query from within
another database. The code (attached below) runs without
errors, but records do not update.
On another hand, when I step thru the code line by line,
everything seems to work just fine.
Could anyone please help?!!
The code:
Dim oAccess As Access.Application
Set oAccess = New Access.Application
oAccess.OpenCurrentDatabase vsDatabase
With oAccess.DoCmd
.SetWarnings False
.OpenQuery "qryUpdateTempScores"
End With
oAccess.CloseCurrentDatabase
Any help is greatly appreciated.