J
Jeff A via AccessMonster.com
hi all,
i have a bound subform (say MySubForm) in an unbound form (say MyForm).
MySubForm's Record Source is set to a query (MyQuery) which selects certain
records from a linked table (MyLinkdTable). In the MyForm, i have a command
button (cmdProcess) which essentially copies and processes records from a
table (MyTable) to (MyLinkdTable) using ADO. However, after cmdProcess,
MySubForm does not display the recently copied records. I checked the
underlying table (MyLinkdTable) and it is indeed there.
I placed a Me![MySubForm].Requery after cmdProcess. Sometimes it works.
Sometimes it doesn't. I even created another command button (cmdRequery)
that just does that, manually forcing MySubForm to requery. In most cases,
it takes more than three requeries before MySubForm displays the records.
The weird thing is when I try to step through the code, especially after
the Me![MySubForm].Requery line, MySubForm displays the records. No manual
requery (cmdRequery) was needed!
I'm having a difficult time solving the problem, especially since the code
seems to behave fine at debug mode but does not behave well at runtime. I'm
at my wits end. Any idea what causing this?
thanks, jeff
p.s. i'm still using Access 2000.
i have a bound subform (say MySubForm) in an unbound form (say MyForm).
MySubForm's Record Source is set to a query (MyQuery) which selects certain
records from a linked table (MyLinkdTable). In the MyForm, i have a command
button (cmdProcess) which essentially copies and processes records from a
table (MyTable) to (MyLinkdTable) using ADO. However, after cmdProcess,
MySubForm does not display the recently copied records. I checked the
underlying table (MyLinkdTable) and it is indeed there.
I placed a Me![MySubForm].Requery after cmdProcess. Sometimes it works.
Sometimes it doesn't. I even created another command button (cmdRequery)
that just does that, manually forcing MySubForm to requery. In most cases,
it takes more than three requeries before MySubForm displays the records.
The weird thing is when I try to step through the code, especially after
the Me![MySubForm].Requery line, MySubForm displays the records. No manual
requery (cmdRequery) was needed!
I'm having a difficult time solving the problem, especially since the code
seems to behave fine at debug mode but does not behave well at runtime. I'm
at my wits end. Any idea what causing this?
thanks, jeff
p.s. i'm still using Access 2000.