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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How conditionally printing a label using Data Report (VB6.0)

Status
Not open for further replies.

mvmukhedkar

Programmer
Aug 23, 2000
1
IN
Respected Sir / Madam,

How conditionally print a label using Data Report (VB6.0)
e.g., if cust_no < 100 display the label &quot;Cust_No : &quot; and actual cust_no otherwise don't display the label as well as the actual value.

The set up is : VB 6.0 (Data Report and Data Environment)
and MS - Access (.mdb files)

Thank you.

Regards

Prasad
 
You can do this by write a formula in the Format Editor under object format and suppress section. Enter the formula that you want in order to suppress the label when the formula returns true. Click to the &quot;X+2&quot; button and write: cust_no >= 100 and the same formula for the actual value (database field). I assume that the &quot;cust_no&quot; is a database field, so it would be written as {[db_table_name].cust_no} in the 2 suppress formulas (where &quot;[db_table_name]&quot; is your database table name).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top