Hi
To query a backEnd database from a frontend database with Sql script, proceed as follows:
Or go there http://www.utteraccess.com/forum/index.php?showtopic=2037433&view=findpost&p=2601389
To query a backEnd database from a frontend database with Sql script, proceed as follows:
Code:
Private Sub Form_Load()
Dim strPathDb As String, strDbName As String, strRsetTable As String, strBackEndLocation As String, strDBPSW As String
strPathDb = Application.CurrentProject.Path & "\"
strDbName = "test_be.accdb"
strBackEndLocation = strPathDb & strDbName
strDBPSW = ""
Me.RecordSource = "SELECT * FROM tblTest IN'' [MS Access;PWD=" & strDBPSW & ";database=" & strBackEndLocation & "]"
end sub
Or go there http://www.utteraccess.com/forum/index.php?showtopic=2037433&view=findpost&p=2601389