A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If duplicate value apply conditional format



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2009, 01:39 PM posted to microsoft.public.access.forms
Jules.[_2_]
external usenet poster
 
Posts: 2
Default If duplicate value apply conditional format

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
  #2  
Old November 10th, 2009, 02:29 PM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default If duplicate value apply conditional format

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

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


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

  #3  
Old November 10th, 2009, 08:35 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default If duplicate value apply conditional format

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.

have no idea what expression to put in to highlight duplicate values in it.

What about DCount 1?

--
Build a little, test a little.


"Jules." wrote:

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

  #4  
Old November 11th, 2009, 12:47 PM posted to microsoft.public.access.forms
Jules.[_2_]
external usenet poster
 
Posts: 2
Default If duplicate value apply conditional format

thanks for your help. That worked.

"Tom van Stiphout" wrote:

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

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


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

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.