Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Customizing SQL Recordset Connection
Message
From
04/08/1999 06:29:59
 
 
To
All
General information
Forum:
Visual C++
Category:
Other
Title:
Customizing SQL Recordset Connection
Miscellaneous
Thread ID:
00249623
Message ID:
00249623
Views:
52
Hi! I'm using Visual Interdev's DTC Recordset Object in my ASP page and it's pretty neat. I assigned the DTC Recordset to a Grid and it works. Now I would like to customize the Recordset's SQL Query to fetch records based on criteria determined by a couple of my variables.

Here's a sample:

session("var1") = first condition criteria
session("var2") = second condition criteria

I entered the following SQL statement at the pane at the General Tab and I got error messages:

select * from users where user_id= & "session(" & "'" & "var1" & "'" & ")" & "AND password=" & "session(" & "'" & "var2" & "'" & ")"

I would appreciate the help. Thanks.

Ariel
Reply
Map
View

Click here to load this message in the networking platform