473,383 Members | 1,997 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,383 software developers and data experts.

Input Mask in Access 97

Bob
I want to use an input mask to force the first letter of a field to be a
capital, then have the rest of the field be as entered. By using the > sign
before the first, then the < sign before the rest, I can almost accomplish
this. However, this forces all the rest of the entry to lower case so I can't
enter a name like McDonald. Any advice on how I can do this? Thanks.

Bob

Nov 12 '05 #1
2 1907
On Thu, 20 May 2004 19:00:05 GMT, Bob wrote:
I want to use an input mask to force the first letter of a field to be a
capital, then have the rest of the field be as entered. By using the > sign
before the first, then the < sign before the rest, I can almost accomplish
this. However, this forces all the rest of the entry to lower case so I can't
enter a name like McDonald. Any advice on how I can do this? Thanks.

Bob

You are using a form for data entry, I hope.
Don't bother with a mask.
Let the user enter the name with or without the first letter
capitalized.
Code the Control's AfterUpdate event:
[ControlName] = UCase(Left([ControlName],1)) & Mid([ControlName],2)

mcDonald and McDonald becomes McDonald.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 12 '05 #2
Bob
In article <11****************************@40tude.net>,
fg******@example.invalid says...
Fred,
Thanks, your code works fine. I had to put it in a Macro because for some
reason it doesn't work in an expression for my unbound control. Thanks again.

Bob
You are using a form for data entry, I hope.
Don't bother with a mask.
Let the user enter the name with or without the first letter
capitalized.
Code the Control's AfterUpdate event:
[ControlName] = UCase(Left([ControlName],1)) & Mid([ControlName],2)

mcDonald and McDonald becomes McDonald.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: johnp | last post by:
Hi, Our Tech department updated users to Office 2003 this week. Now the input mask in one of the applications is showing up as: (###) ###-### The input mask wizard works correctly when I...
7
by: F. Michael Miller | last post by:
I have a db with Access front end, sql back, linked tables. I need to be able to change input masks at the table level in code. Any ideas? Thanks!
3
by: AA Arens | last post by:
When I want the first character of a field to be Uppercased, I need to make an input mask, like >L< followed by ??????? for example. But this mask creates ____ in an unfilled field, which I don't...
7
desklamp
by: desklamp | last post by:
I'm a total Access newbie, please bear with me! Using Win2K/Access 2003. I'm trying to create a table in which I can store IP addresses and other information. According to Microsoft, there is no...
1
by: Doug | last post by:
Hi, I created a short date field. The format is dd/mm/yyyy when displayed. The input mask is set to 99/99/00;0 (default, I didn't type anything). If I edit an existing date, say change...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.