recordset as argument

J

JC

dim rst as recordset
set rst = currentdb.openrecordset("qMyQuery",dbopendynaset)

I pass rst as an argument to one of my procedures. When
it gets to the called procedure the records are NOT in the
order as defined by qMyQuery.
If I do a requery, all the records are back in the correct
order.
Is this the way it should work? Shouldn't I be able to
expect the recordset based on a particular query to be
ordered correctly without having to requery it?
Thanks.
- jc -
 
A

Alex Dybenko

Hmm, i think at me this works fine, try to decare a dbs variable as
database, set it to currentdb and use it instead of currentdb when you open
recordset
 

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