|
-
Jan 10th, 2002, 03:27 AM
#1
Thread Starter
New Member
Report based on user input!VB6 and Data report designer
Hello, I"ve been trying to produce a report within the data report designer in vb 6 based on user input with no luck(passing the user input from the form to the report). The user enters in a number and then a report is produced from 3 tables (access 2k tables) How do i pass the user input to produce a report. I haven't been able to find any examples of a report being produced based on user input. Does anyone have an example or maybe a link I could look at.
Thanks Kindly..
-
Jan 10th, 2002, 04:04 AM
#2
hi
One way is to store only the report information to a separate table and run the report from that. You can then use user input to filter the required data first before creating the the report. this woiuld probably involve Sql statement in code to open the required recordset, or if the tables are pretty simple you can use a query to copy the data into the output table. This way also has the added advantage that you can export only the report data.
Regards
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Jan 10th, 2002, 04:05 AM
#3
Fanatic Member
If your reports based on a datacontrol, then use the user input to complete the SQL for the datasource. Then requery the datacontrol before opening the report.
The liver is bad. It must be punished.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|