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 statement and input 1

Status
Not open for further replies.

nonprogrammer

Technical User
Dec 28, 2005
143
0
0
US
I was wondering if you can do in if statement then input

would it be something like
Code:
<% if rsone("a1") = rstwo ("aw1")then input 3 into "as1" end if%>
 
That's crazy talk there.

What exactly are rsone("a1") and rstwo("aw1")?

<.

 
rsone("a1") is a field in table umber 1
rstwo("aw1) is a field that gets populated from antother form in table number 2
I am trying to write an asp page that will compare both fields and if both fields are equal then input a specific number into table 2 field as1
 
something like this:

Code:
<% 
if rsone("a1") = rstwo("aw1")then 
dim sql, conn
conn = "your connection string"
sql = "your insert sql query"
conn.execute sql
end if
%>

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top