HomeGrowth
Technical User
I use a combo with 3 fields. upon user selected his/her choice, it go out and find the record. I used the codes below but return an error message 'Type mismatch (Error 13)'. All 3 fields are text datatype.
' Find the record that matches the control.
Dim rs As Object
Dim strRev As String
Dim strStatus As String
strRev = Me![cmbSOPList].Column(1)
strStatus = Me![cmbSOPList].Column(2)
Set rs = Me.Recordset.Clone
rs.FindRecord "[Doc Number] = '" & Me![cmbSOPList] & "'" And "[Rev] = " & strRev And "[Status] = " & strStatus
Me.Bookmark = rs.Bookmark
Can someone shed some lights on this??
' Find the record that matches the control.
Dim rs As Object
Dim strRev As String
Dim strStatus As String
strRev = Me![cmbSOPList].Column(1)
strStatus = Me![cmbSOPList].Column(2)
Set rs = Me.Recordset.Clone
rs.FindRecord "[Doc Number] = '" & Me![cmbSOPList] & "'" And "[Rev] = " & strRev And "[Status] = " & strStatus
Me.Bookmark = rs.Bookmark
Can someone shed some lights on this??