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

Supressing a data column in Data reports

Status
Not open for further replies.

netizen

Programmer
Aug 27, 2002
24
0
0
IN
Hi! All,
I'm working with VB6 data reports and I need to programatically suppress a data column based on a condition. Is there a way to do this? If yes, please let me know.

thanks,
hari
 
Seems the easy way would be to test the condition and use the test to vary the SQL string that you use to pull the data.

Pseudocode only:

if a = b then
mystring = ""
else mystring = "phone, "
SQLstring = "SELECT name, " & mystring & "address FROM .... Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top