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

IF Then QueryStrings and "Ints"

Status
Not open for further replies.

lesleint

IS-IT--Management
Apr 11, 2003
144
0
0
US
I have a dB column set as an int and on my page I am looping through the records no problem. One part of the loop Asks:
Code:
If Request.QueryString("uID") = (rsU.Fields.Item("uid").Value) Then
And it is never true. I am thinking because hte dB is an Int and the QueryString is just a string?

How can I make this true?
 
I got it
Just Dim a var the set it like so:

Dim iVar
iVar = Int(Request.QueryString("uID"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top