View only records with uppercase letters for a certain field

If I wanted to view only the records with Uppercase letters for a certain field, how would I do it?
I want to automatically convert all letters entered in a postcode field on a form to uppercase. I'm not sure of the syntax. In VBA I have :

Public Sub uppercase()

Sponsored Links:

Related Topics

Ucase A Field?
I want to automatically convert all letters entered in a postcode field on a form to uppercase. I'm not sure of the syntax. In VBA I have :

Public Sub uppercase()

field to field, get only uppercase?
I am building an inventory list for my business and I am trying to generate a unique 'ItemID' field.
I want to get only the uppercase letters from my BandName field and a random 5 digit number to make up the ItemID field.

How do I do this. I have been trying for days

Query for Partial Uppercase Text in Field
I know there are several ways to just convert from lower case to uppercase and I know there are things like Expr1: Asc([CountLocation]) you can use with 80 to find all uppercase records in a query, but mine is a bit different and I'm wondering if it's even possible.

I have a text field called CountLocation. The format for this should be as follows:

MAIN STREET NAME: Cross Street Name

So what I want to do is search all the records that do not have all caps before the :

Then I want to search for all the records that only have all caps after the :

The only way I could think of doing it is, text delimiting the field in say Excel by the : and then putting that as a new table in access and searching that way. Too much work I think and not very efficient. So anyone have a clue how to do a partial search for uppercase and lower case as in my example above?

Field Headers in a Tbl Made by a Qry
I have a table that is created by a MakeTable qry. After the table has been created, one of the field names is in lowercase. If I change that field name to all uppercase in Design View of the table, save and close, the field name reverts back to lowercase when the table is reopened. If I change the field name to uppercase when the table is in Datasheet View, save and close, the uppercase format "sticks" and is not reset to lowercase when reopened. Why would a change of case not be possible when made in Design View but be possible in Datasheet View

Count uppercase letters
I have field in one form with number of letters in upper and lower case with spaces. I need to count number of upper case letters only and put the number in different field.

Me.Text47 = Len([Work Order])

"Work Order" - field with letters to be count
"Text47" - field, where result must put.

But this code counts letters with spaces.

Count uppercase letters
I have field in one form with number of letters in upper and lower case with spaces. I need to count number of upper case letters only and put the number in different field. I found following code:

Me.Text47 = Len([Work Order])

"Work Order" - field with letters to be count
"Text47" - field, where result must put.

But this code counts all letters with spaces. Can you please help to change this

Upercase in filed of form
I want in field call name
when ever I enter any name convert to uppercase
all the letters.I will put that code inside after update

Sort records in case-sensitive order
Microsoft Office Access 2007 sorts records in ascending or descending order without regard to case. However, by writing a few lines of Visual Basic for Applications (VBA) code, you can sort text by its ASCII character values. Sorting on the basis of the ASCII values differentiates the uppercase letters from the lowercase letters, and results in a case-sensitive order.

Text Control 1st TWO letters uppercase
This may seem a daft one but there you go. I have an application where the Business name is a standard text box. Not using any masking or any other special formatting.

One and it only one, business company name has their name spelled with the first two letters in capitals, for example ASmith.

I cannot find any way to get this entry to remain as above; it seems to automatically change to Asmith as soon as the text control loses focus.

Of course, all other entries are, dare I say, normal with only the first letter in uppercase, so whatever the solution is, I don't want the normal entries to change.

Googled it lots and can't find anything that seems to work.

I guess Microsoft have disallowed literal charcaters entires for some reason.

identifying and eventually updating lowercase records to uppercase
I'm totally new to access.8 years ago I was reasonably proficient with foxpro and oracle, but literally haven't even thought about databases and queries since then. The non-profit where I work uses access and wants the data stored in uppercase (they don't use forms at all) but a lot of old data is in lowercase or mixed case. I was just puttering around with this and was only going after 1 field at this point in my where clause but when executed I get a pop-up that requests I enter parameter value wheat.fname. Here is my query
I thought this would return all rows where the stored data for FNAME doesn't match the forced uppercase of the FNAME field -- all records with mixed or lowercase in fname field.

Can anyone please tell me where I'm falling short here

Changing table names from lowercase to uppercase
I was searching for some way that I could change all the tables from lowercase names to uppercase. I guess I should have just done all uppercase to begin with but I try to use lower case for everything to keep from having confusion.
I am using Access 2007.
Thanks in advance. Any help would be great. I can't find anything other than an SQL reference to alter table.

Using 2003; I have a database that imports data from a spreadsheet. When I look at the data in the table; its in all caps. but when I view it in a form for editing or report, some of the data is in lowercase. I need it to be upper case like in the table. I tried the Keypress code but it only changes new data not existing. Why does it change case in the forms and on the report and how can I force it to uppercase

Replace 3rd character in string with uppercase
I'm a first time poster but long time lurker. This is a great site!

I am an novice access user and I am having trouble with trying to set up a query where if a last name starts with "Mc". it will capitalize the next character. For example: Mcdonald would change to McDonald. Mccleary would change to McCleary. etc.

So far I have:


Clean5 is the field where I have my names stored.
This sort of works but it replaces all the same letters as the 3rd character to uppercase too. For example: Mcdonald changes to McDonalD, and Mccleary changes to MCCleary

From large to small letters
In a field of a table the entries are either on capital letter or small letters or capital and small letters together. I want all data in that field to turn to small letters only. (as you were typing with no Caps Lock)

Return records where ID contains leading letters
How can I run a query that will return only those records where the ID field contains two leading letters?

Some of the IDs are 100% numeric but some of them are formatted like XX12314. I only want to return those where the two leading characters are any letter.

Is ISNUMERIC the best solution here or is there a better way to do it

Capitalize all records in a database
I have a database, which is full of data containing lower and uppercase characters.

Is there an SQL script I can run to capitalize all letters?

The table I am trying to capitalize is called "RQ", and I'm trying to capitalize all data in the table

Y and N entries
I have a one character field where the user can only enter Y or N in uppercase. I have no problem with the uppercase code but cannot get the Y or N code sorted out. The Y and N entries are then counted, no problem here. But the Y or N entries have got me baffled

I want to make a self generating ID field and other things
I am making a database and I want to make a field to generate it's own data on a table, similar to auto number. But I want it to it to be letters and numbers using the first 3 letters from another field.

For example

for company ABC the ID will be ABC1, and if there is already a company called ABC, then the second ABC company will be called ABC2 and company AAB will be AAB1

The first 3 letters should be from the name of the company and the number is set it aside from other companies with the same first 3 letters

Extracting only letters from data?
This could possibly be very complicated that im trying to do and I am certainly not an expert in VB. But I know that it must be possible so I figured I would ask you guys and give it a shot.
I have uploaded a picture of the table that I wish to extract data from.
Basically, there is a field called 'DeviceTag'
Each entry consists of no more than 3 letters, then numbers (sometimes numbers+letters).
I want to extract only the letters at the begining (either export only the letters at the start of each entry to a new table or just some how that I can easily access them). Then I want to do the same with the rest of the data after the letters.
So ideally after running the script (or whatever you guys suggest) I would have another table with two fields, one containing the Letters at the start, the other containing the numbers/letters at the end.
An example would be:
Would be split into: "MAG" & "1001"
I hope that makes sense.
P.S. This Forum is great, very informative

enter a schedule # that includes letters and not just numbers
Basically what has happen is that I need to allow the users to enter a schedule # that includes letters and not just numbers.

I think I have located the issue in the event procedure but I am not sure. I could only get intodesign view in an old test copy however in the live db the design view is grayed out? What does that mean