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 / November 2007

Tip: Looking for answers? Try searching our database.

Conditional Formatting and DCount (?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
croy - 16 Nov 2007 18:35 GMT
Should the following statement work in Conditional
Formatting for a field?

 DCount("Kept","tblCatch","IvDetId=" & Me![txtIvDetId])>0

I copied the syntax from a form module, so maybe it needs to
be tweaked for use in the Conditional Formatting window?

Signature

Thanks,
croy

boblarson - 16 Nov 2007 19:54 GMT
Yes, but only if txtIvDetId is a number.  If text, try changing it to:

DCount("[Kept]","tblCatch","[IvDetId]='" & Me![txtIvDetId] & "'")>0

Signature

Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com
__________________________________
If my post was helpful to you, please rate the post.

> Should the following statement work in Conditional
> Formatting for a field?
[quoted text clipped - 3 lines]
> I copied the syntax from a form module, so maybe it needs to
> be tweaked for use in the Conditional Formatting window?
croy - 19 Nov 2007 16:36 GMT
>Yes, but only if txtIvDetId is a number.

Yup, plain-Jane Autonumber field.

But still the formatting doesn't kick in.  %-<

Signature

croy

 
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.