Hello there - why do I get a type mismatch error with the set recs statment in this code?!
Sub manipulateRecords()
Dim recs As Recordset
Dim record As String
Set recs = CurrentDb.OpenRecordset("tableMainData")
While Not recs.EOF
If recs("productType") = "requirements" Then
record = recs(inspectionID)
recs.MoveNext
MsgBox (record)
End If
Wend
End Sub
Sub manipulateRecords()
Dim recs As Recordset
Dim record As String
Set recs = CurrentDb.OpenRecordset("tableMainData")
While Not recs.EOF
If recs("productType") = "requirements" Then
record = recs(inspectionID)
recs.MoveNext
MsgBox (record)
End If
Wend
End Sub