"All Caps" Validation rule

  • Thread starter Thread starter Bill Lentz
  • Start date Start date
B

Bill Lentz

I have the following validation rule for a field:

Like "[A-Z][A-Z][A-Z]"

How do I modify this to require that the entry be in uppercase?

Thanks
Bill
 
It's much easier just to force the result to all caps. In the text box's
AfterUpdate event, just add code similar to the following:

Sub txtWhatever_AfterUpdate()
Me.txtWhatever = UCase(Me.txtWhatever)
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top