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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Flickering Error message: Check duplicates



 
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2010, 04:46 PM posted to microsoft.public.access.gettingstarted
Kathryn
external usenet poster
 
Posts: 108
Default Flickering Error message: Check duplicates

I'm not sure what I have done ... nothing as far as I can tell but obviously
something.

I have used the Contacts management template as the basis of a Contacts/
Event database. A couple of issues have arisen - but the most annoying one is
the appearance of a flickering Error message (where a warning about possible
duplicates appears) in the Contact Details form.

The Properties are - Text box: txtDuplicatesWarning
and the code that comes up in the Expression Builder is:
=IIf(DCount("*","[Contacts Extended]","[ID]" & Nz([ContactID],0) & " And
[Contact Name] = '" & Replace(Nz([Contact Name]),"'","''") & "'")0,"Possible
Duplicate","")

ContactsExtended is a query that came built in with the template which I
haven't changed - though I have done some work on the Contact Details form on
which the error is displayed - adding fields from the Contacts table)

Is there something obviously wrong? The warning would be useful but the
flickering Error definitely isn't! If you need any more information, please
let me know!

Many thanks
  #2  
Old April 26th, 2010, 04:55 PM posted to microsoft.public.access.gettingstarted
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default Flickering Error message: Check duplicates

Hi Kathryn,
Did you put that code in the ControlSource of the TextBox?

Kathryn wrote:
I'm not sure what I have done ... nothing as far as I can tell but obviously
something.

I have used the Contacts management template as the basis of a Contacts/
Event database. A couple of issues have arisen - but the most annoying one is
the appearance of a flickering Error message (where a warning about possible
duplicates appears) in the Contact Details form.

The Properties are - Text box: txtDuplicatesWarning
and the code that comes up in the Expression Builder is:
=IIf(DCount("*","[Contacts Extended]","[ID]" & Nz([ContactID],0) & " And
[Contact Name] = '" & Replace(Nz([Contact Name]),"'","''") & "'")0,"Possible
Duplicate","")

ContactsExtended is a query that came built in with the template which I
haven't changed - though I have done some work on the Contact Details form on
which the error is displayed - adding fields from the Contacts table)

Is there something obviously wrong? The warning would be useful but the
flickering Error definitely isn't! If you need any more information, please
let me know!

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 AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/201004/1

  #3  
Old April 28th, 2010, 05:38 PM posted to microsoft.public.access.gettingstarted
Kathryn
external usenet poster
 
Posts: 108
Default Flickering Error message: Check duplicates


Hi - sorry for the delay in getting back to you - it's been a bit manic with
the other side of my work this week!

To answer the question - no, I didn't put the code in. I used the Contacts
Management template as the basis of our own and up until last week it worked
fine. To be honest, I hadn't checked what code was there as I'm so new I
wouldn't have known how to! I've learnt a lot but can't say whether it
changed from one day - when it worked - to the next when it didn't

Not much help I know but hopefully you can prompt what other information you
might need.

Many thanks


"ruralguy via AccessMonster.com" wrote:

Hi Kathryn,
Did you put that code in the ControlSource of the TextBox?

Kathryn wrote:
I'm not sure what I have done ... nothing as far as I can tell but obviously
something.

I have used the Contacts management template as the basis of a Contacts/
Event database. A couple of issues have arisen - but the most annoying one is
the appearance of a flickering Error message (where a warning about possible
duplicates appears) in the Contact Details form.

The Properties are - Text box: txtDuplicatesWarning
and the code that comes up in the Expression Builder is:
=IIf(DCount("*","[Contacts Extended]","[ID]" & Nz([ContactID],0) & " And
[Contact Name] = '" & Replace(Nz([Contact Name]),"'","''") & "'")0,"Possible
Duplicate","")

ContactsExtended is a query that came built in with the template which I
haven't changed - though I have done some work on the Contact Details form on
which the error is displayed - adding fields from the Contacts table)

Is there something obviously wrong? The warning would be useful but the
flickering Error definitely isn't! If you need any more information, please
let me know!

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 AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/201004/1

.

  #4  
Old April 29th, 2010, 04:34 PM posted to microsoft.public.access.gettingstarted
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default Flickering Error message: Check duplicates

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
and HotFixes applied?

Kathryn wrote:
Hi - sorry for the delay in getting back to you - it's been a bit manic with
the other side of my work this week!

To answer the question - no, I didn't put the code in. I used the Contacts
Management template as the basis of our own and up until last week it worked
fine. To be honest, I hadn't checked what code was there as I'm so new I
wouldn't have known how to! I've learnt a lot but can't say whether it
changed from one day - when it worked - to the next when it didn't

Not much help I know but hopefully you can prompt what other information you
might need.

Many thanks

Hi Kathryn,
Did you put that code in the ControlSource of the TextBox?

[quoted text clipped - 22 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

  #5  
Old April 30th, 2010, 05:02 PM posted to microsoft.public.access.gettingstarted
Kathryn
external usenet poster
 
Posts: 108
Default Flickering Error message: Check duplicates

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


"ruralguy via AccessMonster.com" wrote:

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
and HotFixes applied?

Kathryn wrote:
Hi - sorry for the delay in getting back to you - it's been a bit manic with
the other side of my work this week!

To answer the question - no, I didn't put the code in. I used the Contacts
Management template as the basis of our own and up until last week it worked
fine. To be honest, I hadn't checked what code was there as I'm so new I
wouldn't have known how to! I've learnt a lot but can't say whether it
changed from one day - when it worked - to the next when it didn't

Not much help I know but hopefully you can prompt what other information you
might need.

Many thanks

Hi Kathryn,
Did you put that code in the ControlSource of the TextBox?

[quoted text clipped - 22 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

.

  #6  
Old April 30th, 2010, 06:53 PM posted to microsoft.public.access.gettingstarted
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default Flickering Error message: Check duplicates

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

  #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

.

 




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 01:17 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.