Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2007

Tip: Looking for answers? Try searching our database.

Cond Format-finding char within field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
REGREGL - 05 Dec 2007 17:08 GMT
I would like to apply conditional formating to a form text field when
non-apha numeric characters are within the fields value (such as "." "," "-"  
etc.).  Is there a way to search a field for specific characters and apply
conditional formatting to it if those characters are present?
Steve Schapel - 05 Dec 2007 18:02 GMT
Regregl,

In the 'Expression Is' box in the Conditional Formatting dialog, you can
enter something like this:
[YourField] Like "*.*" Or [YourField] Like "*,*" Or [YourField] Like "*-*"

I think there is a shorthand way of writing this... I'm not 100% sure,
but I think this will work:
[YourField] Like "*[.,-]*"

Signature

Steve Schapel, Microsoft Access MVP

> I would like to apply conditional formating to a form text field when
> non-apha numeric characters are within the fields value (such as "." "," "-"  
> etc.).  Is there a way to search a field for specific characters and apply
> conditional formatting to it if those characters are present?
REGREGL - 05 Dec 2007 21:41 GMT
Thanks Steve,

That works great!

> Regregl,
>
[quoted text clipped - 10 lines]
> > etc.).  Is there a way to search a field for specific characters and apply
> > conditional formatting to it if those characters are present?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.