Connecting Tech Pros Worldwide Help | Site Map

Selecting recordset for DataReport at runtime

Newbie
 
Join Date: Sep 2008
Posts: 10
#1: Sep 16 '08
I want to create a Data Report in my project. I have created a Data Environment and connect my database to it. I want to select a recordset at runtime and display as the report. So in the 'Command1 Properties' I have created an SQL Statement as the 'Sourse of Data'.I want to give a variable in that SQL Statement. eg. select * from MARK where AdmissionNo=<admno>. (I want to create the Report for the Mark details of a particular student whose Admission No which will be given at the runtime).I have defined the variable 'admno' globally in a code module.Can I do this?
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,505
#2: Sep 16 '08

re: Selecting recordset for DataReport at runtime


you ned to frame the query at runtime and pass to datareport.
Reply