Form/ListBox does not populate correctly from RecordSet

A

Aaron WOLSKI

Greetings,

Using VB/Access 2002, I am loading the contents of a file into a recordset
and trying to set it as the recordset of either a form or listbox. The
form or listbox is populated with all of the records from the recordset
but none of the values are actually visible. Interrogating the recordset
directly, I am able to see that the correct values are indeed there.

Interestingly enough, if I then move through the recordsetclone of the
form, the values appear as i 'visit' them. While this solves the problem
in the case of form, it does not sound robust and can't be applied in the
case of a listbox.

Any ideas?


Cheers,

Aaron.
 
A

Aaron WOLSKI

I leave the rowsource of the listbox empty but instead set the recordset
to be an rs that I have generated programmatically. Apparently, the
ability to supply a recordset, as an alternative to specifying its
rowsource was added for Access2000.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top