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.
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.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.