R
Ross
Hi
How can I pass an sql string with values from the current database to an
external database and then run that query in the external database. I almost
have it but am stuck.
'The SQL string
'The variables
SQL = "UPDATE Links SET Links.CUser = """ & strTO & """ "
SQL = SQL & "WHERE (((Links.CUser)=""" & strFrom & """));"
Get_File_Info
'This correctly opens the external database
Dim AppAccess As New Access.Application
With AppAccess
.OpenCurrentDatabase (strPathFile)
' This code runs but the criteria in the SQL string don't seem to carry into
the 'external Database
DoCmd.RunSQL SQL
.CloseCurrentDatabase
End With
Thank you
Ross
How can I pass an sql string with values from the current database to an
external database and then run that query in the external database. I almost
have it but am stuck.
'The SQL string
'The variables
SQL = "UPDATE Links SET Links.CUser = """ & strTO & """ "
SQL = SQL & "WHERE (((Links.CUser)=""" & strFrom & """));"
Get_File_Info
'This correctly opens the external database
Dim AppAccess As New Access.Application
With AppAccess
.OpenCurrentDatabase (strPathFile)
' This code runs but the criteria in the SQL string don't seem to carry into
the 'external Database
DoCmd.RunSQL SQL
.CloseCurrentDatabase
End With
Thank you
Ross