petertran123
10-25-2002, 09:21 PM
Hello,
I'm having a SSN field to do a look up: this is a code i'm using
strSQL = "Select SSN from vwpositiveTable"
Set conn = GetDBConnection(DATABASE_CONNECT_STRING)
Set rs = conn.Execute( strSQL )
If Not rs.EOF Then
rs.MoveFirst
while not rs.eof
SSN = Request.form("SSN")
rs.MoveNext
wend
End If
rs.Close
the problem i have is, the field only give me one value from last record..
here is an example: i have in database
SSN table containing value as below
1111111111
2222222222
3333333333
4444444444
5555555555
6666666666
when i try to look up for SSN 111111111 or 222222222 and is not found. I wanted to be able to see all the value from Row SSN in database, and do a look up from there.
in this matter. if someone is entering SSN 111111111 to 66666666 then they will ask to leave and no more application accept for this SSN because is already there. and
if they enter anything different SSN beside 111111111 to 66666666 then they are allowed to enter new application. I'm Sorry i can't explain well
I'm having a SSN field to do a look up: this is a code i'm using
strSQL = "Select SSN from vwpositiveTable"
Set conn = GetDBConnection(DATABASE_CONNECT_STRING)
Set rs = conn.Execute( strSQL )
If Not rs.EOF Then
rs.MoveFirst
while not rs.eof
SSN = Request.form("SSN")
rs.MoveNext
wend
End If
rs.Close
the problem i have is, the field only give me one value from last record..
here is an example: i have in database
SSN table containing value as below
1111111111
2222222222
3333333333
4444444444
5555555555
6666666666
when i try to look up for SSN 111111111 or 222222222 and is not found. I wanted to be able to see all the value from Row SSN in database, and do a look up from there.
in this matter. if someone is entering SSN 111111111 to 66666666 then they will ask to leave and no more application accept for this SSN because is already there. and
if they enter anything different SSN beside 111111111 to 66666666 then they are allowed to enter new application. I'm Sorry i can't explain well