If duplicate value apply conditional format

J

Jules.

Hi

I'm really struggling with a project at the moment. The database I'm
working with has a concatenated Primary key of Registration Date and Customer
ID Number. It MUST stay this way. A customer can re-register with a
different request on a different date and when this occurs I need to
highlight (red or bold)the recurrence of the customer number on the
continuous form I'm using. I've looked at the conditional formatting behind
the Customer ID field but have no idea what expression to put in to highlight
duplicate values in it.

Any help would be greatly appreciated.

Thanks
 
T

Tom van Stiphout

On Tue, 10 Nov 2009 04:39:01 -0800, Jules.

You could use an expression based on an extra, potentially invisible,
column in your query. This column would indicate duplicate or not.
Something like:
CustomerCount: count(CustomerID) from myTable group by CustomerID

-Tom.
Microsoft Access MVP
 
K

KARL DEWEY

The database I'm working with has a concatenated Primary key of
Registration Date and Customer ID Number. It MUST stay this way.
You could have an autonumber as primary key and a unique index (no
duplicates) of the Registration Date and Customer ID Number.
What about DCount >1?
 
J

Jules.

thanks for your help. That worked.

Tom van Stiphout said:
On Tue, 10 Nov 2009 04:39:01 -0800, Jules.

You could use an expression based on an extra, potentially invisible,
column in your query. This column would indicate duplicate or not.
Something like:
CustomerCount: count(CustomerID) from myTable group by CustomerID

-Tom.
Microsoft Access MVP


.
 

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

Top