|
Question : 'Me.RecordsetClone.FindFir<wbr />st' with 2 criteria
|
|
I want to find a record based on two criteria This works for first criteria
Sub cboRFS_AfterUpdate() Me.RecordsetClone.FindFirst "[Source] = " & Me![cboSrc] Me.Bookmark = Me.RecordsetClone.Bookmark End Sub
This works for second criteria
Sub cboRFS_AfterUpdate() Me.RecordsetClone.FindFirst "[RFSNo] = " & Me![cboRFS] Me.Bookmark = Me.RecordsetClone.Bookmark End Sub
But when I run
Sub cboRFS_AfterUpdate() Me.RecordsetClone.FindFirst "[RFSNo] = " & Me![cboRFS] And "[Source] = " & Me![cboSrc] Me.Bookmark = Me.RecordsetClone.Bookmark End Sub
I get Runtime error '13' Type Mismatch
Can someone please help?
|
|
Answer : 'Me.RecordsetClone.FindFir<wbr />st' with 2 criteria
|
|
Change
Me.RecordsetClone.FindFirst "[RFSNo] = " & Me![cboRFS] And "[Source] = " & Me![cboSrc]
to
Me.RecordsetClone.FindFirst "[RFSNo] = " & Me![cboRFS] & " And [Source] = " & Me![cboSrc]
gaw
|
|
|