Private Sub UseRealFieldName_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MchDonANDI] = " & Str(Me![MchDonANDI])
Me.Bookmark = rs.Bookmark
End Sub
Try this on the AfterUpdate on your text box (UseRealFieldName), hope it helps
--
Wayne
"David Habercom" wrote:
> The help I found here has much improved my prospects for making this form do
> what I need, but this code fails to find the record, though it runs. It runs
> from VBA, and MchDonANDI is a field in the form's RecordSource query. Where
> should I start looking for my (next) flaw?
>
> Dim rst As DAO.Recordset
> Set rst = Me.RecordsetClone
> With rst
> .FindFirst "[MchDonANDI]= '1204749'"
> End With
>
> Thanks in advance
> --
> Dave
|