PC Review


Reply
Thread Tools Rate Thread

entering information to an access database in uppercase only

 
 
=?Utf-8?B?RURNVVJQ?=
Guest
Posts: n/a
 
      9th Apr 2006
I am new to creating databases and am able to create a basic database using
wizards etc. I am trying to create a database where all the information
entered by the user will be entered in upper case only no matter if they type
in upper or lower case. Can someone help with this question??

 
Reply With Quote
 
 
 
 
Al Camp
Guest
Posts: n/a
 
      9th Apr 2006
EDMURP,
In text controls, a Format of > will "display" all entries in upper case even
though they are stored in Upper and Lower.

Or... use the AfterUpdate event of each text control to trigger the following code...
Me.[YourFieldName] = UCase([YourFieldName])
That will store each text value in UpperCase in the table.
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"EDMURP" <(E-Mail Removed)> wrote in message
news:6EA68B21-8D94-4FFC-92A7-(E-Mail Removed)...
>I am new to creating databases and am able to create a basic database using
> wizards etc. I am trying to create a database where all the information
> entered by the user will be entered in upper case only no matter if they type
> in upper or lower case. Can someone help with this question??
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?RURNVVJQ?=
Guest
Posts: n/a
 
      9th Apr 2006
Thank you for a very swift reply, i appreciate your help. Can you tell me
where I would get a step by step guide to doing this. I somewhat understand
what you are saying but unsure where to start and some of the terms. I am
very new to this and sefl taught.

Thanks and Regards


"Al Camp" wrote:

> EDMURP,
> In text controls, a Format of > will "display" all entries in upper case even
> though they are stored in Upper and Lower.
>
> Or... use the AfterUpdate event of each text control to trigger the following code...
> Me.[YourFieldName] = UCase([YourFieldName])
> That will store each text value in UpperCase in the table.
> --
> hth
> Al Camp
> Candia Computer Consulting - Candia NH
> http://home.comcast.net/~cccsolutions
>
> "EDMURP" <(E-Mail Removed)> wrote in message
> news:6EA68B21-8D94-4FFC-92A7-(E-Mail Removed)...
> >I am new to creating databases and am able to create a basic database using
> > wizards etc. I am trying to create a database where all the information
> > entered by the user will be entered in upper case only no matter if they type
> > in upper or lower case. Can someone help with this question??
> >

>
>
>

 
Reply With Quote
 
Rick Brandt
Guest
Posts: n/a
 
      9th Apr 2006
"EDMURP" <(E-Mail Removed)> wrote in message
news:BF4D4B69-EEA6-4705-B4DE-(E-Mail Removed)...
> Thank you for a very swift reply, i appreciate your help. Can you tell me
> where I would get a step by step guide to doing this. I somewhat understand
> what you are saying but unsure where to start and some of the terms. I am
> very new to this and sefl taught.
>
> Thanks and Regards


In your form's design view select one of the TextBoxes for entering data and
then find the AfterUpdate event property box on the {Events} tab of the property
sheet. In that box enter "[Event Procedure]" from the drop-down list of choices
and then press the build [...] button to the right of the property box.

That will take you to the VBA code window within the module attached to the form
and your cursor will be pre-positioned between the two lines that define the
AfterUpdate event for your TextBox. Between those two lines enter...

Me!TextBoxName = UCase(Me!TextBoxName)

....substituting the actual name of your control. Save and exit the VBA code
window. You should now find that when you enter text in that TextBox that it
will be changed to all caps when you tab out of it. Repeat this for all other
TextBoxes on your form.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 
Reply With Quote
 
=?Utf-8?B?RURNVVJQ?=
Guest
Posts: n/a
 
      9th Apr 2006
Hey there, many thanks for your help, I am now nearly there.
I followed your instructions in the first paragraph with ease. when the VBA
code window appears I am unsure what I should type. I am not sure what
>
> Me!TextBoxName = UCase(Me!TextBoxName)


Means.....
Can you please explain more? The text box name is CSR in this case so should
I type
Me!CSR=UCase(Me!CSR)

Thansk for your reply in advance.


 
Reply With Quote
 
Rick Brandt
Guest
Posts: n/a
 
      10th Apr 2006
"EDMURP" <(E-Mail Removed)> wrote in message
news:3017228E-B770-4F79-9BB1-(E-Mail Removed)...
> Hey there, many thanks for your help, I am now nearly there.
> I followed your instructions in the first paragraph with ease. when the VBA
> code window appears I am unsure what I should type. I am not sure what
>>
>> Me!TextBoxName = UCase(Me!TextBoxName)

>
> Means.....
> Can you please explain more? The text box name is CSR in this case so should
> I type
> Me!CSR=UCase(Me!CSR)
>
> Thansk for your reply in advance.


Exactly that.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 
Reply With Quote
 
=?Utf-8?B?S2VuIFNoZXJpZGFu?=
Guest
Posts: n/a
 
      10th Apr 2006
In a control on a form you can force all text entered to upper case as its
typed. First add this procedure to a standard module:

Public Sub ConvertToCaps(KeyAscii As Integer)
' Converts text typed into control to upper case

Dim strCharacter As String

' Convert ANSI value to character string.
strCharacter = Chr(KeyAscii)
' Convert character to upper case, then to ANSI value.
KeyAscii = Asc(UCase(strCharacter))

Exit Sub

End Sub

Then in each control's KeyPress event procedure call the procedure:

' Call ConvertToCaps procedure to convert input to upper case
ConvertToCaps KeyAscii

Ken Sheridan
Stafford, England

"EDMURP" wrote:

> I am new to creating databases and am able to create a basic database using
> wizards etc. I am trying to create a database where all the information
> entered by the user will be entered in upper case only no matter if they type
> in upper or lower case. Can someone help with this question??
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I reformat my database from all uppercase to proper? =?Utf-8?B?UHJpbmNleQ==?= Microsoft Excel Worksheet Functions 2 10th Jul 2006 09:55 PM
Allow entering uppercase only Rob Microsoft VB .NET 6 3rd Jul 2005 09:11 PM
Entering all data in UpperCase =?Utf-8?B?RGFuSg==?= Microsoft Access Forms 7 31st Mar 2005 10:57 PM
Entering information only once =?Utf-8?B?c2V0aA==?= Microsoft Access Getting Started 1 14th Jan 2005 08:50 PM
Force Uppercase when entering data in a cell =?Utf-8?B?RGFu?= Microsoft Excel Worksheet Functions 3 15th Apr 2004 02:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.