Ken,
It is one form (no sub forms). I have tried the record source being a
table
as well as a query. There is a combo box that selects records from the
table
in which I want to select the record. The user selects the record and in
the
on click of that field, the following code runs:
Private Sub SrchRec_Click()
On Error GoTo Err_SrchRec_Clk
GlbCBIDSrch = Empty
GlbCBIDSrch = Me.SrchRec.Column(0)
Dim Fnd As Variant
Fnd = Me.SrchRec.Column(0)
Forms![frmcbopen]![CmpltNum].SetFocus
DoCmd.FindRecord Fnd
Forms![frmcbopen]![CmpltTyp].SetFocus
Exit_SrchRec_Clk:
Exit Sub
Err_SrchRec_Clk:
ErrorMessage ("CBOpen Srch Record Click")
Resume Exit_SrchRec_Clk
End Sub
This exact code used in the same manner works on other forms in this same
mdb. There are 124 fields on the form and in the sql table which is more
than in the other forms/tables. Aside from that, I see no differences.
I would prefer to us a query with a like statement looking at the primary
field being equal to the field on the form. In that way the user does
not
have a record appearing until they select something. However, at this
point,
anything is ok if it works! (Note a bit of frustration going on...

)
Thank you for your help, Elaine
Ken Snell (MVP) said:
You'll have to tell us a lot more details about the form, where/when
you're
using this, how you're using this, etc. This error message usually shows
up
when (1) some other event is blocking the moving to another record; (2)
an
error exists in the programming that is running at that time; (3) your
setup
is not proper for using this action; etc.
--
Ken Snell
<MS ACCESS MVP>
I am using this in other forms in the same frontend mdb and it works
fine.
In one form, however, it does not. I have tried the form's record
source
as
both the a table and a query.
Anyone found a reason or solution for this? Thanks.