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

If /Then statement

Status
Not open for further replies.

ProTouch

Programmer
Jul 10, 2002
10
US
I am having trouble coding this...
I want to have a statement like this

SQL2 = "SELECT * FROM tblSupplier WHERE suppID=" & request("suppID")

if provretail = no
then
response.write " "
else
response.write "Find a Retailer Near You"
end if

where provretail is a field in my database that is either yes or no.

Can any one help?
J.Gilbert
 
Hi ...
you have to user a recordset to access your fields in your DB ...
and then you can do this :
If RS("provretail") = 0 Then
response.write " "
else
response.write "Find a Retailer Near You"
end if

----
TNX.
E.T.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top