473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Capitalization on forms

jimleon
74
Hello gurus

I have a text box on a form that is used to enter data in the format a99v which is bound to a table. How do I auto capitalize the form field and the entry in the table. Thought it was easier than its proving to be!

Many thanks in advance
Apr 27 '07 #1
5 5692
Rabbit
12,516 Expert Mod 8TB
Never heard of that format. Are you talking about an input mask? Put > in front and it'll convert everything to capital letters.
Apr 27 '07 #2
jimleon
74
putting the > in the format box will indeed capitalize the contents of the form field but the contents of the table it is bound to stays at its original lowercase format.

Never heard of that format. Are you talking about an input mask? Put > in front and it'll convert everything to capital letters.
Apr 27 '07 #3
Rabbit
12,516 Expert Mod 8TB
putting the > in the format box will indeed capitalize the contents of the form field but the contents of the table it is bound to stays at its original lowercase format.
That's because you have to tell the input mask to store with the input mask in the table. To do that you have to attach ;0 at the end of the input mask.
Apr 27 '07 #4
create this module

Option Compare Database
Option Explicit

Expand|Select|Wrap|Line Numbers
  1. Public Function UpperCase()
  2. 'Test if control contains text
  3.     If IsNull(Screen.ActiveControl) = False Then
  4. 'convert text to Proper Case
  5.         Screen.ActiveControl = StrConv(Screen.ActiveControl, vbUpperCase)
  6.     End If
  7. End Function
  8. Public Function LowerCase()
  9. 'Test if control contains text
  10.     If IsNull(Screen.ActiveControl) = False Then
  11. 'convert text to Proper Case
  12.         Screen.ActiveControl = StrConv(Screen.ActiveControl, vbLowerCase)
  13.     End If
  14. End Function
  15. Public Function ProperCase()
  16. 'Test if control contains text
  17.     If IsNull(Screen.ActiveControl) = False Then
  18. 'convert text to Proper Case
  19.         Screen.ActiveControl = StrConv(Screen.ActiveControl, vbProperCase)
  20.     End If
  21. End Function

then call any of the function u want on the after update of any field

after update=UpperCase()

this will turn ur data into upper caseor any way u want to...good luck
May 3 '07 #5
NeoPa
32,556 Expert Mod 16PB
That's because you have to tell the input mask to store with the input mask in the table. To do that you have to attach ;0 at the end of the input mask.
This is the answer you need.
This needs to happen automatically so a function, though a good idea for some cases, is probably not appropriate in this case. Good idea though Rock
May 3 '07 #6

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

Similar topics

5
by: icrash2 | last post by:
Hi, I'm using PHP to submit form input to MySQL and need a way to capitalize the first character for certain fields. Does anyone know of some way to achieve this? Much appreciated
0
by: Agoston Bejo | last post by:
Tools / Options / Text Editor / HTML/XML / Format / Capitalization Usually I use Tags: Uppercase; Attributes: Uppercase but now I edit XML pages and I set them both to "As entered". However,...
6
by: Corepaul | last post by:
I am new to Access 2000. My operating system is Windows 2000. In the early stage of development I noticed something weird. On my form, I have a Command Button named "btnAlbumUp". The first time...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
3
by: Joshua Russell | last post by:
Hi, Both the methods below open up a windows form called MasterForm. However, one works better than the other. Method 1 opens the form correctly but I don't have any reference to the instance of...
5
by: Bruce W.1 | last post by:
Looking at the html produced by Visual Studio I see a mixed bag of tag capitalization. For example there's <HEAD> and <body>. Then there's <form and <TABLE>. Is there some logic behind the mixed...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
13
by: MD | last post by:
I have been converting a program from VB6 to VB.Net and enhancing it as well. All has been progressing OK although its been hard work. Now, all of a sudden, when I try to execute a ShowDialog()...
3
by: Lloyd Sheen | last post by:
I have the following situation: Need a user resizable user control. After much trying with user control I came across the idea of hosting the controls in a form marked as not TopLevel = false. ...
3
by: Geraldine Hobley | last post by:
Hello, In my project I am inheriting several forms. However when I inherit from a form and add additional subroutines and methods to my inherited form I get all sorts of problems. e.g. I sometimes...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.