Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I print different reports depending on a sql select in vb.

Status
Not open for further replies.

Hunter7

MIS
Jun 4, 2001
3
US
I was wondering if I can print different reports depending on a field from a select. The report will be named the same as the field information.
example Sur, Sur1, Sur2. If the select comes back with Sur then I want my print statement to look like this

variable.printout False

Where the variable is equal to Sur .
Instead of the generic

CrystalReport1.PrintOut False

I am having problems with the declaring the variable. I can't get vb to use a variable before the printout statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top