PC Review


Reply
Thread Tools Rate Thread

DCOUNT intermittent #Error on report

 
 
Mike H
Guest
Posts: n/a
 
      16th Feb 2006
Hi, I am trying to sort out a problem for someone... They have a series of
reports based on queries that get all their data from one large table.

One report conains a series of text boxes, each using DCount in a
straightforward way.
The query chooses its data according to 2 dates and a client name which are
all in drop-downs on a form.
The query always works OK, regardless of what is selected in the form
The Report works fine regardless of what is selected in the form (so the
expressions in the text boxes are all correct)... EXCEPT that one client
causes #Error to appear in some of the text boxes. It does it for that
client regardless of which date range is set (even though the data for
January has no intersection with the data for March).

And to make it even weirder, one DCount counts all the data, and has no
problem; while the DCount next to it which counts a sub-set of that same
data displays #Error

I am lost for an explanation - any ideas?

P.S. They are using Access 2000 on a Windows XP machine.

Thank you




 
Reply With Quote
 
 
 
 
Wayne Morgan
Guest
Posts: n/a
 
      16th Feb 2006
If it's just the one client, I would suspect one of two things as the most
likely problem.

1) The client needs Office, Jet, or MDAC updates. These can be found here:
http://office.microsoft.com/en-us/of...e/default.aspx
http://msdn.microsoft.com/data/downl...s/default.aspx

2) There is a problem with one or more of the library references in Access
on that computer. For more information on that, see this link:
http://www.allenbrowne.com/ser-38.html

--
Wayne Morgan
MS Access MVP


"Mike H" <(E-Mail Removed)> wrote in message
news:%23GU3X%(E-Mail Removed)...
> Hi, I am trying to sort out a problem for someone... They have a series of
> reports based on queries that get all their data from one large table.
>
> One report conains a series of text boxes, each using DCount in a
> straightforward way.
> The query chooses its data according to 2 dates and a client name which
> are
> all in drop-downs on a form.
> The query always works OK, regardless of what is selected in the form
> The Report works fine regardless of what is selected in the form (so the
> expressions in the text boxes are all correct)... EXCEPT that one client
> causes #Error to appear in some of the text boxes. It does it for that
> client regardless of which date range is set (even though the data for
> January has no intersection with the data for March).
>
> And to make it even weirder, one DCount counts all the data, and has no
> problem; while the DCount next to it which counts a sub-set of that same
> data displays #Error
>
> I am lost for an explanation - any ideas?
>
> P.S. They are using Access 2000 on a Windows XP machine.
>
> Thank you
>
>
>
>



 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      16th Feb 2006
Hi, by client, I meant a person who buys things from the company. When that
client's name is selected in the drop-down on the form there is an error,
regardless of which machine it's run on. Apologies about my ambiguity.


"Wayne Morgan" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> If it's just the one client, I would suspect one of two things as the most
> likely problem.
>
> 1) The client needs Office, Jet, or MDAC updates. These can be found here:
> http://office.microsoft.com/en-us/of...e/default.aspx
> http://msdn.microsoft.com/data/downl...s/default.aspx
>
> 2) There is a problem with one or more of the library references in Access
> on that computer. For more information on that, see this link:
> http://www.allenbrowne.com/ser-38.html
>
> --
> Wayne Morgan
> MS Access MVP
>
>
> "Mike H" <(E-Mail Removed)> wrote in message
> news:%23GU3X%(E-Mail Removed)...
>> Hi, I am trying to sort out a problem for someone... They have a series
>> of
>> reports based on queries that get all their data from one large table.
>>
>> One report conains a series of text boxes, each using DCount in a
>> straightforward way.
>> The query chooses its data according to 2 dates and a client name which
>> are
>> all in drop-downs on a form.
>> The query always works OK, regardless of what is selected in the form
>> The Report works fine regardless of what is selected in the form (so the
>> expressions in the text boxes are all correct)... EXCEPT that one client
>> causes #Error to appear in some of the text boxes. It does it for that
>> client regardless of which date range is set (even though the data for
>> January has no intersection with the data for March).
>>
>> And to make it even weirder, one DCount counts all the data, and has no
>> problem; while the DCount next to it which counts a sub-set of that same
>> data displays #Error
>>
>> I am lost for an explanation - any ideas?
>>
>> P.S. They are using Access 2000 on a Windows XP machine.
>>
>> Thank you
>>
>>
>>
>>

>
>



 
Reply With Quote
 
John Spencer
Guest
Posts: n/a
 
      16th Feb 2006
Are you using the Client's name in the DCOUNT?

If so, does this client have a apostrophe in the name (like O'Conner)? If
so and you are using an apostrophe in the DCount where clause, this could
cause the error. Same thing goes for quote marks " , but that is usually
less common in a name field.

"Mike H" <(E-Mail Removed)> wrote in message
news:%23GU3X%(E-Mail Removed)...
> Hi, I am trying to sort out a problem for someone... They have a series of
> reports based on queries that get all their data from one large table.
>
> One report conains a series of text boxes, each using DCount in a
> straightforward way.
> The query chooses its data according to 2 dates and a client name which
> are
> all in drop-downs on a form.
> The query always works OK, regardless of what is selected in the form
> The Report works fine regardless of what is selected in the form (so the
> expressions in the text boxes are all correct)... EXCEPT that one client
> causes #Error to appear in some of the text boxes. It does it for that
> client regardless of which date range is set (even though the data for
> January has no intersection with the data for March).
>
> And to make it even weirder, one DCount counts all the data, and has no
> problem; while the DCount next to it which counts a sub-set of that same
> data displays #Error
>
> I am lost for an explanation - any ideas?
>
> P.S. They are using Access 2000 on a Windows XP machine.
>
> Thank you
>
>
>
>



 
Reply With Quote
 
Wayne Morgan
Guest
Posts: n/a
 
      16th Feb 2006
How many columns are in the Combo Box that you use to select the client?
What is the Bound Column? Is the Bound Column an ID field, not the client's
name? If so, does the field in the table that you're storing this selection
in (Control Source of the combo box) accept that type of data?

While the user is seeing the client's name and selecting that, data from
another column in the combo box may be what is being stored in the form's
table. This is normal, but you have to realize what is happening so that it
gets set up properly.

--
Wayne Morgan
MS Access MVP


"Mike H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, by client, I meant a person who buys things from the company. When
> that client's name is selected in the drop-down on the form there is an
> error, regardless of which machine it's run on. Apologies about my
> ambiguity.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adp report error when using dcount in control source of text box Rachel Microsoft Access ADP SQL Server 3 3rd Feb 2008 11:05 AM
DCOUNT intermittent #Error on report Mike H Microsoft Access Forms 4 16th Feb 2006 09:18 PM
DCOUNT intermittent #Error on report Mike H Microsoft Access Queries 4 16th Feb 2006 09:18 PM
DCOUNT intermittent #Error on report Mike H Microsoft Access Reports 4 16th Feb 2006 09:18 PM
DCOUNT intermittent #Error on report Mike H Microsoft Access Reports 0 16th Feb 2006 07:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 AM.