populate form with recordset

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to populate a form with an ADODB recordset using code supplied
here:
http://support.microsoft.com/?kbid=281998

but I get an error "operation is not allowed when object is open" when
trying to open the form. The code is set to run on the OnOpen event as
indicated in the example code. Should I run it on a different event?
Thanks,
 
I tried the code, with and without a sub form, it run fine.

Are you sure it happen in the Sub?
Do you have anything else in the OnLoad event for example, that migt cause
this error?
Put a code break in the first line (press F9) and step through the code (F8)
and see in which line this error happen.
 
Back
Top