HighDots Forums  

case-sensitivity (ASP VB)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss case-sensitivity (ASP VB) in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stewboy webforumsuser@macromedia.com
 
Posts: n/a

Default case-sensitivity (ASP VB) - 07-18-2003 , 04:28 PM






My database is case-sensitive, so when a user inputs geg instead of GEG, it doesn't recognize. I tried putting LIKE instead of = in the SQL, but that makes no difference.

Is there a way to set the parameters of my form variable so the input is Upper Case only?




Reply With Quote
  #2  
Old   
jon spivey
 
Posts: n/a

Default Re: case-sensitivity (ASP VB) - 07-18-2003 , 04:47 PM






Hi,

strTemp = ucase(request.form("fieldname"))

Jon

"stewboy" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
My database is case-sensitive, so when a user inputs geg instead of GEG,
it doesn't recognize. I tried putting LIKE instead of = in the SQL, but that
makes no difference.
Quote:
Is there a way to set the parameters of my form variable so the input is
Upper Case only?





Reply With Quote
  #3  
Old   
Ed
 
Posts: n/a

Default Re: case-sensitivity (ASP VB) - 07-18-2003 , 07:31 PM



change your SQL statement to check for uppercase

....
Where Upper( field1 ) = Upper ( parameter )

On Fri, 18 Jul 2003 20:28:42 +0000 (UTC), "stewboy"
webforumsuser (AT) macromedia (DOT) com wrote:

Quote:
My database is case-sensitive, so when a user inputs geg instead of GEG, it doesn't recognize. I tried putting LIKE instead of = in the SQL, but that makes no difference.

Is there a way to set the parameters of my form variable so the input is Upper Case only?




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.