cyberbiker
Programmer
I have never worked with the data enviroment before nor the Data Report Designer. I really just need somebody to confirm I am on the right track before I get in too deep since it just looks too simple.
I need to creates some very simple reports that will need the datasource set "on the fly" according to some pretty complex logic. (reports are simple, not the app)
If I understand what I am reading correctly, I will be able to set the individual data reports datasource directly to either an open recordset or a stored procedure.
Thus it appears that I could do something like this:
Dim strtSQL
Dim RS as recordset
set RS = new recordset
strSql = "Select this from that order by something where
"this > " somelongvariable
RS.open StrSQL, DB, etc, etc where DB is the current active database connection
set report1.datasource = RS
report1.printreport
All this without needing to use the data enviroment?
I have about 20 reports to design and I am currently trying to test this theory but am hoping someone has done this already
Terry (cyberbiker)
I need to creates some very simple reports that will need the datasource set "on the fly" according to some pretty complex logic. (reports are simple, not the app)
If I understand what I am reading correctly, I will be able to set the individual data reports datasource directly to either an open recordset or a stored procedure.
Thus it appears that I could do something like this:
Dim strtSQL
Dim RS as recordset
set RS = new recordset
strSql = "Select this from that order by something where
"this > " somelongvariable
RS.open StrSQL, DB, etc, etc where DB is the current active database connection
set report1.datasource = RS
report1.printreport
All this without needing to use the data enviroment?
I have about 20 reports to design and I am currently trying to test this theory but am hoping someone has done this already
Terry (cyberbiker)