473,467 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

lower case to upper case

35 New Member
hi people,

I have rather an odd question, all the information I have inputted into my aql database is lower case, however, on some of the pages i display i want to retrieve the code in an uppercase format, is their any straight forward way to do it?

Cheers,

Expand|Select|Wrap|Line Numbers
  1. <%
  2.  
  3. Dim  strbasicsearch, strSQL, objConn, objRs
  4. strbasicsearch = Request.QueryString ("basicsearch") 
  5.  
  6. strSQL = "select * from album where band_name like '%"& strbasicsearch &"%'"
  7.  
  8.  
  9. Set objConn = Server.CreateObject("ADODB.Connection")
  10. objConn.Open "dsn=Oracle;uid=user;pwd=pass"
  11. Set objRs=objConn.Execute(strSQL)
  12.  
  13.  
  14. <table>
  15. <tr>
  16. <td width="400" valign="middle" class="style10"><strong><%=objRs("band_name")%></strong> </td>
  17. </tr>
  18. </table>
  19.  
Feb 29 '08 #1
4 3205
markrawlingson
346 Recognized Expert Contributor
That is weird. Have you tried running a query directly in the database and see what you get back?

By the way, you can also use the LCase() and UCase() functions to change the case. So if you want everything in lower case, you could use the LCase function to get there.
Feb 29 '08 #2
j0rdanf1
35 New Member
That is weird. Have you tried running a query directly in the database and see what you get back?

By the way, you can also use the LCase() and UCase() functions to change the case. So if you want everything in lower case, you could use the LCase function to get there.
great, but how would i attach the Ucase() function to the requested code?
Mar 1 '08 #3
marting
7 New Member
Hi

You can use the UCase() and LCase() like this...

Expand|Select|Wrap|Line Numbers
  1. <%=UCase(objRs("band_name"))%>
Expand|Select|Wrap|Line Numbers
  1. <%=LCase(objRs("band_name"))%>
Because I'm sooooo kind, I'll add your code below with UCase() applied.
Expand|Select|Wrap|Line Numbers
  1. <table>
  2. <tr>
  3. <td width="400" valign="middle" class="style10"><strong><%=Ucase(objRs("band_name"))%></strong> </td>
  4. </tr>
  5. </table>
Enjoy...
Mar 3 '08 #4
j0rdanf1
35 New Member
You are a legend, thank-you my friend that has solved a big problem

Hi

You can use the UCase() and LCase() like this...

Expand|Select|Wrap|Line Numbers
  1. <%=UCase(objRs("band_name"))%>
Expand|Select|Wrap|Line Numbers
  1. <%=LCase(objRs("band_name"))%>
Because I'm sooooo kind, I'll add your code below with UCase() applied.
Expand|Select|Wrap|Line Numbers
  1. <table>
  2. <tr>
  3. <td width="400" valign="middle" class="style10"><strong><%=Ucase(objRs("band_name"))%></strong> </td>
  4. </tr>
  5. </table>
Enjoy...
Mar 5 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: programmerforhire | last post by:
Hello all, Is there a way to setup an ms-access table so that when I enter text in the 'datasheet' mode, it will automatically be converted tp upper case. Or must I use a Form for this? rex
3
by: MHenry | last post by:
All the lower case "c" in my database table are now upper case "C" starting in January 2004. All prior data is fine. I just noticed this after installing a Microsoft update patch a couple of days...
17
by: Janice | last post by:
char* line = "abcd"; How to convert the line to upper case and print? Any option for printf to do this? Thanx
19
by: Eric Lindsay | last post by:
Should HTML 4.01 Strict markup be done in upper case or in lower case? I understand that HTML allows either upper or lower case. I also notice that XHTML apparently requires lower case. However I...
8
by: csanjith | last post by:
Hi, i have a situaion where i need to convert the characters entered in an text field to upper case using C. The configuration id utf8 environment in which user can enter any character (single ,...
2
by: Mike Dunk | last post by:
In the .NET Framework 2.0 SDK I create a file TestApp.cs - mixed case. Does anyone know why, when I compile entering a csc command from the Visual Studio 2005 Command Prompt, I need to enter the...
14
by: fniles | last post by:
In VB.NET 2005 can I check if a letter in a string is upper case or lower case ? For example: I have the following 2 lines: NQ,Z2003,11/11/2003,1416.5,1420,1402,1411.5...
15
by: pukhton | last post by:
Hi fellows Just a quick question about my database. I have one table in my database which i import it from some other Access db. This table has many fields, such as Initials, Medication name...
5
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I force the users to enter characters in uppercase? I want to do this in a TextBox control of an aspx page. Then I want the same to be moved to inside a GridView control. Thanks.
6
by: lenniekuah | last post by:
Hullo Awesome Helpers, Thank you for helping me earlier. I am back with new problem. I am trying to covert a TEXT String into either Lower and Upper case characterS. (Upper case Eg. ALFRED instead...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.