I'm getting a mismatch error at the line with ----> and don't know why. Can anyone see what I'm missing?
Sub test()
Dim db As Database
Dim recSubmittal As Recordset
Dim recFiles As Recordset
Dim strSQL As String
Dim strSQL2 As String
' Capture the current record's prodnum
' strProdNum = Me.ProdNum
strSQL = "SELECT * FROM qrySubmittalMerge WHERE prodnum = 'lj584';"
' setup recordsets to equal queries and filter by prodnum
Set db = CurrentDb()
-----> Set recSubmittal = db.OpenRecordset(strSQL, dbOpenDynaset)
End Sub
[sig][/sig]
Sub test()
Dim db As Database
Dim recSubmittal As Recordset
Dim recFiles As Recordset
Dim strSQL As String
Dim strSQL2 As String
' Capture the current record's prodnum
' strProdNum = Me.ProdNum
strSQL = "SELECT * FROM qrySubmittalMerge WHERE prodnum = 'lj584';"
' setup recordsets to equal queries and filter by prodnum
Set db = CurrentDb()
-----> Set recSubmittal = db.OpenRecordset(strSQL, dbOpenDynaset)
End Sub
[sig][/sig]