MichaelSmith
Registered User.
- Local time
- Today, 14:32
- Joined
- Jan 7, 2014
- Messages
- 34
Hi,
Wondering if anyone can tell me where I'm going wrong with this piece of VBA code in my form:
I'm getting a Run-time error 3135 in the code from this - I've also tried it as this:
Same problem in both. Driving me nuts!
Thanks for the help.
Wondering if anyone can tell me where I'm going wrong with this piece of VBA code in my form:
Code:
Dim strRcset As String
strRcset = "SELECT jctVoyagesSources.*, tV.[VoyageID], tS.[SourceID] " & _
"FROM ([swpdatabase.jctVoyagesSources] " & _
"INNER JOIN [swpdatabase.tblVoyages] AS tV ON jctVoyagesSources.VoyageID = tV.VoyageID) " & _
"INNER JOIN [swpdatabase.tblSources] AS tS ON jctVoyagesSources.SourceID = tS.SourceID"
Set Me.Recordset = BEdb.OpenRecordset(strRcset, dbOpenDynaset, dbSeeChanges)
I'm getting a Run-time error 3135 in the code from this - I've also tried it as this:
Code:
Dim strRcset As String
strRcset = "SELECT jctVoyagesSources.*, tV.[VoyageID], tS.[SourceID] " & _
"FROM ([swpdatabase.jctVoyagesSources] " & _
"INNER JOIN [swpdatabase.tblVoyages] AS tV ON jctVoyagesSources.[VoyageID] = tV.[VoyageID]) " & _
"INNER JOIN [swpdatabase.tblSources] AS tS ON jctVoyagesSources.[SourceID] = tS.[SourceID]"
Set Me.Recordset = BEdb.OpenRecordset(strRcset, dbOpenDynaset, dbSeeChanges)
Same problem in both. Driving me nuts!
Thanks for the help.