~Bean~ Level: VB Guru

 Registered: 07-04-2003 Posts: 488
|
Re: Printing recordsets
Obviously, you don't have to use a Data Report...
However, regarding Data Reports, they aren't that friendly unless you also use a Data Environment...which aren't that friendly either...lol...
you can use a Data Report without a DE, like I said...not so friendly...this is some code i had laying around...
'Code in DataReport_Initialize() event
'Need to set Con before trying this next line...
sql="Select FieldName from TableName"
rs.open sql,Con,adopenDynamic,adlockoptimistic
set datareport.datasource=rs
'And use this to change ONE text fields value...
datareport.sections("Section1").controls ("txtDatafield").datafield=rs(0).name
|
____________________________
Eggheads unite! You have nothing to lose but your yolks.
|