I get a type mismatch error when running the recordset.clone code below.
Both INVvar and VNvar are strings, but Invar is a number and VNvar is text
Is the "and" syntax correct for the rs.FindFirst line of code? If I delete everything after "and" I get no mismatch error. (rs.FindFirst "[Inventory #] = " & INVvar)
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Inventory #] = " & INVvar And "[Vendor Name] = " & VNvar
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Both INVvar and VNvar are strings, but Invar is a number and VNvar is text
Is the "and" syntax correct for the rs.FindFirst line of code? If I delete everything after "and" I get no mismatch error. (rs.FindFirst "[Inventory #] = " & INVvar)
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Inventory #] = " & INVvar And "[Vendor Name] = " & VNvar
If Not rs.EOF Then Me.Bookmark = rs.Bookmark