hi, within my code i have can have request from another page which may assign an ID to apply a search on the SQL query. i can also access this page from another tab which should select all ID's in that database.
what i am trying to achive is to apply a if statement where ASPDB gets the SQL query and apply code like
request("request_ID" = LOCALID
if request("request_ID" = NULL then
SQL = "SELECT * FROM database_table
ELSE
SQL = "SELECT * FROM database_table WHERE ID = LOCALID"
END IF
MyDb.dbSQL = sq
is this correct if not the IF Statement is not selecting correctly can anyone help
thank you
Stuart