SQL statement creation on the fly itself is not too difficult. I currently have a form that allows the user to choose the columns(select statement) and the criteria(where statement)
This then creates a Dynamic SQL statement for report building through the web. Here is my problem:
How do I output dynamic columns into an HTML Table
I can loop through the columnnames to create the header row, but how do I generate the columns and how they line up in the recordset:
EX-
Select choices
fname
lname
addr
zip
state
where choices
gender
state
Now I select fname, lname & gender = 'M'
this dynamically creates a name recordset
how can i display each selected item in a column if I don't know how many columns there will be?
Thanks,
Jon
This then creates a Dynamic SQL statement for report building through the web. Here is my problem:
How do I output dynamic columns into an HTML Table
I can loop through the columnnames to create the header row, but how do I generate the columns and how they line up in the recordset:
EX-
Select choices
fname
lname
addr
zip
state
where choices
gender
state
Now I select fname, lname & gender = 'M'
this dynamically creates a name recordset
how can i display each selected item in a column if I don't know how many columns there will be?
Thanks,
Jon