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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|