Recommended Posts

<%

Dim connectionSQL

Dim recordsetSQL

Dim strinSQL

stringSQL = "SELECT * " & _

"FROM [table] " & _

"WHERE [column1] = '" & Request.Form("textbox1"' " & _

"AND [column2] = '" & Request.Form("textbox2"' "

If Request.Form("textbox3 "" Then

stringSQL = stringSQL & "AND [column3] = '" & Request.Form("textbox3"' "

End If

Set connectionSQL = Server.CreateObject("ADODB.Connection")

connecSQL.Open "some connection string"

Set recordsetSQL = connectionSQL.Execute(stringSQL)

%>

  steelhand said:
<%

Dim connectionSQL

Dim recordsetSQL

Dim strinSQL

stringSQL = "SELECT * " & _

? ? ? ? ? ? ? ? ? ? ? "FROM [table] " & _

? ? ? ? ? ? ? ? ? ? ? "WHERE [column1] = '" & Request.Form("textbox1"' " & _

? ? ? ? ? ? ? ? ? ? ? "AND [column2] = '" & Request.Form("textbox2"' "

If Request.Form("textbox3 "" Then

? ? ? stringSQL = stringSQL & "AND [column3] = '" & Request.Form("textbox3"' "

End If

Set connectionSQL = Server.CreateObject("ADODB.Connection")

connecSQL.Open "some connection string"

Set recordsetSQL = connectionSQL.Execute(stringSQL)

%>

585238334[/snapback]

can this be used with a udl

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.