Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BindingCollection Error

Status
Not open for further replies.

sergiog

Programmer
Feb 17, 2003
24
MT
Hi

I have a class acting as a datasource. In it i have an ADO recordset which i populate with the records from an Access table.

I have a bindingcollection on a form and the datasource is set to the class and the recordset is returned as the datasource.

Textboxes are then added to this bindingcollection.

So far so good.
However, when I add a new record to the recordset, the textboxes seem as they are unbound. The recordset updates fine but the textboxes do not even respond when i do Rs.movenext

Any ideas please?
thanks
 
Do you do a Refresh on the textboxes after calling the MoveNext?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
yes i do.

the textboxes change and show the changed info of that particular record so that's ok.

the problem is that when i click on movenext just after loading the form it's ok. when i do it after i edit something they do not 'move' with the recordset.

i tried resetting the datasource of the bindingcollection but it's not solving it.

any ideas ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top