PC Review


Reply
Thread Tools Rate Thread

"Make table" query missing records returned by simple query - why?

 
 
Paul Danaher
Guest
Posts: n/a
 
      22nd Dec 2003
I have an invoices database, which has fewer than 780 entries, and I tried
to run two queries. The first is a "make table", with SQL

SELECT [invoices w@w].InvoiceNumber, [invoices w@w].[customer name],
[invoices w@w].[date paid], [invoices w@w].currency, [invoices w@w].[net
amount] INTO [invoices paid in 2003]
FROM [invoices w@w]
WHERE (((Year([date paid]))=2003))
ORDER BY [invoices w@w].[date paid];

but the output stops dead at 65 records, which is the end of September. A
simple query with SQL

SELECT [invoices w@w].InvoiceNumber, [invoices w@w].[customer name],
[invoices w@w].[date paid], [invoices w@w].currency, [invoices w@w].[net
amount]
FROM [invoices w@w]
WHERE (((Year([date paid]))=2003))
ORDER BY [invoices w@w].[date paid];

yields all 89 records.

How is this possible?
What do I have to do in a very simple accounting application to make sure
the SQL works properly?


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      22nd Dec 2003
Go to support.microsoft.com, and check that you have the latest service pack
for your version of Office, and also for JET.

If that does not solve the problem, and these are local Access tables (not
MSDE or ODBC), create a new (blank) database, import just the table and the
two queries, zip it down (e.g. WinZip), and I will look at it if you wish to
email it to the address below (replacing "at" and "dot" with the
characters). Include a copy of this thread please.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Paul Danaher" <(E-Mail Removed)> wrote in message
news:MqBFb.29850$(E-Mail Removed)...
> I have an invoices database, which has fewer than 780 entries, and I tried
> to run two queries. The first is a "make table", with SQL
>
> SELECT [invoices w@w].InvoiceNumber, [invoices w@w].[customer name],
> [invoices w@w].[date paid], [invoices w@w].currency, [invoices w@w].[net
> amount] INTO [invoices paid in 2003]
> FROM [invoices w@w]
> WHERE (((Year([date paid]))=2003))
> ORDER BY [invoices w@w].[date paid];
>
> but the output stops dead at 65 records, which is the end of September. A
> simple query with SQL
>
> SELECT [invoices w@w].InvoiceNumber, [invoices w@w].[customer name],
> [invoices w@w].[date paid], [invoices w@w].currency, [invoices w@w].[net
> amount]
> FROM [invoices w@w]
> WHERE (((Year([date paid]))=2003))
> ORDER BY [invoices w@w].[date paid];
>
> yields all 89 records.
>
> How is this possible?
> What do I have to do in a very simple accounting application to make sure
> the SQL works properly?



 
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
How do I use Records returned from a query to run another query? BABs Microsoft Access Queries 2 14th Oct 2008 07:31 PM
Simple questions for simple 2 PC file sharing network. Simple? raylopez99 Microsoft Windows 2000 Networking 3 11th Feb 2007 02:31 PM
Wrong data returned on "Between" "And" parameter in simple query =?Utf-8?B?Sm9l?= Microsoft Access Queries 7 10th Jul 2006 03:34 AM
Simple query showing the number of results returned =?Utf-8?B?U3RlZmFu?= Microsoft Access Queries 1 15th Nov 2005 04:34 PM
Simple Simple Simple craigwojo Microsoft Excel New Users 3 29th Aug 2004 05:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 PM.