Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 15th, 2004, 03:25 PM
Authorized User
 
Join Date: Jul 2003
Location: Urbana, IL, USA.
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default get error when SELECT search starts with "@"

Here's a good one for you.....help if you can.

People come to my order page from two directions...both enters vendor info for them.

If they know a Person/Organizaion ID they enter the number and click the button which sends uiid or fein number they entered. uiid format = 123456789 or @12345678. fein format = 12-3456789

The user can also go to our vendor table and click a vendor which will send the key to the order page.

Problem is my code works great for everything except when they enter a uiid that starts with a @.
Before I gave them a direct link from the vendor table this part worked fine.
The added line to make the vendor lookup link work: " OR key = " & Request.Form("search_string")

my SQL statement:

sSQL = "SELECT * " & _
 " FROM vendor" & _
 " WHERE fein = '" & Request.Form("search_string") & "'" & _
 " OR uiid = '" & Request.Form("search_string") & "'" & _
 " OR key = " & Request.Form("search_string")
Set rs = Connect.Execute(sSQL)

Reply With Quote
  #2 (permalink)  
Old March 15th, 2004, 03:37 PM
Authorized User
 
Join Date: Jul 2003
Location: Urbana, IL, USA.
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

IT's Working...everybody knock on wood.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select * statement when PC starts up... RinoDM SQL Server 2000 3 May 16th, 2007 12:28 PM
Select Statement Help!!! PLEASE!!! Long Search Jonvan20 Access VBA 7 December 12th, 2006 02:04 PM
column name starts with a number. c# throws error. jaikanth_n ADO.NET 0 March 18th, 2006 01:44 PM
search select control rajanikrishna HTML Code Clinic 2 March 3rd, 2004 11:13 AM
How to search for (and select) a record? Haroldd Access 2 June 30th, 2003 06:50 PM



All times are GMT -4. The time now is 08:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.