Forums

This topic is locked

ALL CAPS script or how to?

Posted 24 Sep 2002 18:08:42
1
has voted
24 Sep 2002 18:08:42 Pedro Saenz posted:
Does anybody know how can I get the information that is being from an online form to my Access database to come out in ALL CAPS.

Or is there a function in Access that converts the info in the field to all caps?

Thank you.

Replies

Replied 25 Sep 2002 11:44:39
25 Sep 2002 11:44:39 Stuart Harland replied:
When ur updating or inserting into the database via ASP you can convert the data from the form to uppercase then use the <b>ucase()</b> function:

Dim sName
sName = request.form("name"
rs("name" = <b>UCase(sName)</b>
rs.update

so no matter what the user enters in the textfield 'name' it will be inserted into your database as ALL CAPS.

Hope this helps!

********************
wheatNOTmeat<b></b><b></b>

Edited by - Ferox101 on 25 Sep 2002 11:46:47
Replied 25 Sep 2002 21:40:38
25 Sep 2002 21:40:38 Pedro Saenz replied:
will add it to my code.

thank you!
Replied 25 Sep 2002 22:48:55
25 Sep 2002 22:48:55 Pedro Saenz replied:
I was trying to post the asp code to my page, but I can't seem to find the right location to put it. Reason being because DW MW made a MM_editAction function and can't find the proper location.

(hope it makes sense)

Any help would greatly be appreciated.
Replied 06 Mar 2003 21:44:01
06 Mar 2003 21:44:01 Pedro Saenz replied:
Could anybody tell me where I should insert this code in my document? Or is there an easier way to do this?

Thank you.

Reply to this topic