Sausagefingers
Registered User.
- Local time
- Today, 15:22
- Joined
- Dec 14, 2006
- Messages
- 51
Hi,
I have a problem. Below I've posted two separate code snippets. Both are intended to run on separate AfterUpdade() events on the same form. As such, I have two (unbound) comboboxes on the form to retrieve the data. The first one works perfectly. However, the second one won't work at all:
Me.RecordsetClone.FindFirst "[Name] = '" & Me![delName] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
And;
Me.RecordsetClone.FindFirst "[OrderNumber] = '" & Me![ordNum] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
I would like to be able to search the recordset either by name or by order number. Can anyone point out why I'm having this problem? All the fields in the table are 'Text' datatype. I can't understand why the second snippet won't work.
Thanks in advance.
I have a problem. Below I've posted two separate code snippets. Both are intended to run on separate AfterUpdade() events on the same form. As such, I have two (unbound) comboboxes on the form to retrieve the data. The first one works perfectly. However, the second one won't work at all:
Me.RecordsetClone.FindFirst "[Name] = '" & Me![delName] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
And;
Me.RecordsetClone.FindFirst "[OrderNumber] = '" & Me![ordNum] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
I would like to be able to search the recordset either by name or by order number. Can anyone point out why I'm having this problem? All the fields in the table are 'Text' datatype. I can't understand why the second snippet won't work.
Thanks in advance.