|
-
Nov 2nd, 2000, 01:35 PM
#1
Thread Starter
Addicted Member
How can I write a multiple conditional SQL expression? The problem is that the user types in the 2 expressions to cross reference.
-
Nov 2nd, 2000, 01:52 PM
#2
Code:
Dim first
Dim second
first = text1
second = text2
sSQL = "SELECT * FROM [table] WHERE [field] = " & first & _
" AND [field] = " & second;"
you could use OR in place of AND
-
Nov 3rd, 2000, 01:11 PM
#3
Thread Starter
Addicted Member
I should have asked
Is it possible to use a variable in place of the field name?
-
Nov 3rd, 2000, 02:29 PM
#4
dim first as string
dim second as string
these are both variables that
will get the information from 2 textboxes..
this was an assumption on my part of how
you would get the data initially.
then the text in the textbox is assigned to
the variables first and second.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|