vba - ADODB RecordSet as Access Report RecordSource -


i have simple form, query , report in access 2003. have manipulate results query in recordset using vba , pass on report recordsource.

if declare recordset recordset , use name property recordsource of report working. however, because need edit recordset, though easier use adodb recordset below.

the records set declared dim rs adodb.recordset in global module. rest of code is;

dim db database set db = currentdb dim con adodb.connection set con = currentproject.connection set rs = new adodb.recordset set rs.activeconnection = con rs.source = "select * xxx" rs.locktype = adlockoptimistic rs.cursortype = adopenkeyset rs.open  'manipulate rs here....' 

i used pass recordsource of report myreport.recordsource = rs.name. adodb doesn't have name property.

how can pass recordset report recordsource?

thanks

you cannot bind report ado recordset in mdb, in adp: http://support.microsoft.com/?id=287437


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -