A
AAA
Hello!
The scenario:
I have a .asp page that contains a form with a database
results component. The database result is a query that
will return cercain amount of records from an access
database.
The question:
How can I make the form to show different buttons
depending on the amount of records returned by the query?
In other words, if the query returns no records I need to
show BUTTON_A; if the query returns 1 record I need to
show BUTTON_B; if the query returns 2 records I need to
show BUTTON_C and so on...
The actions associated with each button should be
different, lets say each button redirects the user to a
different page.
Please help!!
Thanks in advance.
The scenario:
I have a .asp page that contains a form with a database
results component. The database result is a query that
will return cercain amount of records from an access
database.
The question:
How can I make the form to show different buttons
depending on the amount of records returned by the query?
In other words, if the query returns no records I need to
show BUTTON_A; if the query returns 1 record I need to
show BUTTON_B; if the query returns 2 records I need to
show BUTTON_C and so on...
The actions associated with each button should be
different, lets say each button redirects the user to a
different page.
Please help!!
Thanks in advance.