|
-
Oct 26th, 1999, 05:54 PM
#1
Thread Starter
Hyperactive Member
can anyone see what is wrong with this line as I can't get
it to work !
sql = "SELECT * FROM FQPack WHERE PalletNo = ' " & trim(txtdeletepallet) & " ' "
when I do this it works fine
sql = "SELECT * FROM FQPack WHERE PalletNo = '559294017' "
I have set up a text box (txtdeletepallet) to allow only
numeric entry and I want this to be my search criteria
against the palletno in FQPack rs.
> thanks for looking
-
Oct 26th, 1999, 08:07 PM
#2
Addicted Member
If you have numeric field PalletNo you must use sql = "SELECT * FROM FQPack WHERE PalletNo = " & trim(txtdeletepallet)
------------------
smalig
[email protected]
smalig.tripod.com
-
Oct 26th, 1999, 08:54 PM
#3
Thread Starter
Hyperactive Member
The palletno field in the table is a text field, I used the examples shown in my books for using a variable in an sql string but can't get it to work
Anyone !
-
Oct 26th, 1999, 09:07 PM
#4
Thread Starter
Hyperactive Member
-
Nov 13th, 1999, 04:53 AM
#5
New Member
Try:
"SELECT * FROM (your table) WHERE (your field) = """ & textbox.text & """"
Hope this helps.
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
|