I'm just learning all the Recordset functions, so I need a little help. I have a form with two specific fields. You enter (in the combo box) the Trust you want, then in the other field, you enter the claim number. Reason I have trust, is because you can have the same claim number for each trust (but different persons name, etc). Therefore, both fields have to be completed. This is my code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Claim_Num] = " & str(Nz(Me![Combo49], 0))and rs.FindFirst "[trustID] = " & str(Nz(Me![cboTrustSelect], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
(Combo49 is my claim number entry field on the current form along with cboTrustSelect.) However, in the above, I received an "EXPECTED END of STATEMENT" on my "[trustID]. What am I doing wrong?
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Claim_Num] = " & str(Nz(Me![Combo49], 0))and rs.FindFirst "[trustID] = " & str(Nz(Me![cboTrustSelect], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
(Combo49 is my claim number entry field on the current form along with cboTrustSelect.) However, in the above, I received an "EXPECTED END of STATEMENT" on my "[trustID]. What am I doing wrong?