"LAS" <(E-Mail Removed)> wrote in
news:i648t8$hqh$(E-Mail Removed):
> Me.Recordset.AddNew
> Me.Recordset.Edit 'I GET A NO CURRENT RECORD ERROR AT THIS
> POINT - HOW
> COME????
> Me!Student_ID = cboStudent_ID
You're mixing recordset and form editing. The .AddNew creates a new
record in the form's underlying recordset and displays it in the
form's display and edit buffers. You aren't editing the recordset,
since you're using the form's edit buffer, not the form's recordset,
to assign the value. Thus, you don't need the .Edit, as you aren't
editing the recordset in the first place.
Again, I keep telling you this -- just stop using the form's
recordset and you'll avoid all these kinds of problems. You're
trying to work with data in the form the way you work with data in a
recordset in code, and this is antithetical to the whole point of
bound Access forms.
--
David W. Fenton
http://www.dfenton.com/
contact via website only
http://www.dfenton.com/DFA/