Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Statement
Message
From
11/05/2001 01:15:02
 
 
To
10/05/2001 15:48:47
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00505965
Message ID:
00506114
Views:
19
In your example the variable is treated as a column

Select *
From Table1
Where Name= name

name=name is always true, all records are selected
To use the contents of a variable:

strSQL = "Select * From Table1 Where Name='" & name & "'"
set rs = db.openrecordset(strSQL)
============================================================
'C' is shorthand for Confusion, 'C++' much more confusion...
Previous
Reply
Map
View

Click here to load this message in the networking platform