View Single Post
  #7  
Old May 4th, 2010, 05:53 PM posted to microsoft.public.access.gettingstarted
Kathryn
external usenet poster
 
Posts: 108
Default Flickering Error message: Check duplicates

Many thanks - will see what I can learn!

"ruralguy via AccessMonster.com" wrote:

I would always recommend using queries and a RecordSource rather than a table
directly. Here is a link to a site you may find useful.
http://allenbrowne.com/Access2007.html#Bugs
There was a flickering issue with ac2003 as I recall that a HotFix resolved.
It was on a Tabbed form.

Kathryn wrote:
Hi

I am using Access 2007 and, as far as I'm aware, everything is up to date.
The database includes a Contacts table from which there is a Query: Contacts
Extended... SQL of which is:
SELECT
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[Company],[FirstName]),IIf(IsNull([FirstName]),[LastName],[LastName]
& ", " & [FirstName])) AS [File As],
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[Company],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName]
& " " & [LastName])) AS [Contact Name], Contacts.*
FROM Contacts
ORDER BY
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[Company],[FirstName]),IIf(IsNull([FirstName]),[LastName],[LastName]
& ", " & [FirstName])),
IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[Company],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName] & " " & [LastName]));

This is useful as it has all sorts of built in SmartTags associated with it
(Schedule meeting/ send e-mail, etc) - but I could probably just use the
Contacts Table if that will make life easier.

The Form causing the problems has as its RecordSource the Contacts Extended
query. I'm not sure why that and not the Contacts Table - again, it may be
easier to use the Contacts Table. If I did that, would it be possible to
change the "Check Duplicates" warning to match?

The Expression Builder currently reads:
=IIf(DCount("*","[Contacts Extended]","[ID]" & Nz([ContactID],0) & " And
[Contact Name] = '" & Replace(Nz([Contact Name]),"'","''") & "'")0,"Possible
Duplicate","")

I hope that's more help!

Many thanks

Without looking at the actual database, I can only ask rather generic
questions. What version of Access are you using? Are all of the Service Packs

[quoted text clipped - 19 lines]

Many thanks


--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

.