PC Review


Reply
Thread Tools Rate Thread

Access 03 Removing Records during Query that appear to be duplicat

 
 
=?Utf-8?B?cmdsdWNoNzQ=?=
Guest
Posts: n/a
 
      25th Oct 2007
I am working on a report for my company, and I am linking tables to our
accounting software and all information is coming through on the tables, but
when I create a query to narrow down the information, Access is removing
certain records that appear to be duplicate information. This is not the
case however, and I am wondering if anyone knows where I can look to turn
this feature off, if it is a feature that is on? Please help!!!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      25th Oct 2007
Queries don't remove records unless it's a delete query. Rather they don't
return records that don't meet the criteria. Therefore we need to know what
the query is asking to return.

Show us the SQL. Open the query in design view. Next go to View, SQL View
and copy and past it here. Information on primary keys and relationships
would be a nice touch too.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"rgluch74" wrote:

> I am working on a report for my company, and I am linking tables to our
> accounting software and all information is coming through on the tables, but
> when I create a query to narrow down the information, Access is removing
> certain records that appear to be duplicate information. This is not the
> case however, and I am wondering if anyone knows where I can look to turn
> this feature off, if it is a feature that is on? Please help!!!

 
Reply With Quote
 
=?Utf-8?B?cmdsdWNoNzQ=?=
Guest
Posts: n/a
 
      25th Oct 2007
SELECT GLM_MASTER__ACCOUNT1.Account, GLM_MASTER__ACCOUNT1.Account_Title,
GLT_CURRENT__TRANSACTION.Accounting_Date, GLT_CURRENT__TRANSACTION.Batch,
GLT_CURRENT__TRANSACTION.Transaction_Desc, GLT_CURRENT__TRANSACTION.Debit,
GLT_CURRENT__TRANSACTION.Credit
FROM GLM_MASTER__ACCOUNT1 INNER JOIN GLT_CURRENT__TRANSACTION ON
GLM_MASTER__ACCOUNT1.Account = GLT_CURRENT__TRANSACTION.Account
GROUP BY GLM_MASTER__ACCOUNT1.Account, GLM_MASTER__ACCOUNT1.Account_Title,
GLT_CURRENT__TRANSACTION.Accounting_Date, GLT_CURRENT__TRANSACTION.Batch,
GLT_CURRENT__TRANSACTION.Transaction_Desc, GLT_CURRENT__TRANSACTION.Debit,
GLT_CURRENT__TRANSACTION.Credit
HAVING (((GLM_MASTER__ACCOUNT1.Account)>="1-az-88-6007" And
(GLM_MASTER__ACCOUNT1.Account)<="1-az-99-9997") AND
((GLT_CURRENT__TRANSACTION.Accounting_Date)>=#1/1/2007# And
(GLT_CURRENT__TRANSACTION.Accounting_Date)<=#9/30/2007#));

I am pulling account # and account title from the GLM Master, and then the
accounting information from the GLT Current Transaction

"Jerry Whittle" wrote:

> Queries don't remove records unless it's a delete query. Rather they don't
> return records that don't meet the criteria. Therefore we need to know what
> the query is asking to return.
>
> Show us the SQL. Open the query in design view. Next go to View, SQL View
> and copy and past it here. Information on primary keys and relationships
> would be a nice touch too.
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
> "rgluch74" wrote:
>
> > I am working on a report for my company, and I am linking tables to our
> > accounting software and all information is coming through on the tables, but
> > when I create a query to narrow down the information, Access is removing
> > certain records that appear to be duplicate information. This is not the
> > case however, and I am wondering if anyone knows where I can look to turn
> > this feature off, if it is a feature that is on? Please help!!!

 
Reply With Quote
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      26th Oct 2007
You have a Totals query which will remove duplicates. The Group By clause is
inserted in a Totals query. As you aren't doing any aggregrate funtions, such
as count or sum, in the Select part of the query, you don't need the Group By
unless you don't want to see dupes.

In Query Design view with the QBE grid showing, go up to View on the menu
and uncheck Totals.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"rgluch74" wrote:

> SELECT GLM_MASTER__ACCOUNT1.Account, GLM_MASTER__ACCOUNT1.Account_Title,
> GLT_CURRENT__TRANSACTION.Accounting_Date, GLT_CURRENT__TRANSACTION.Batch,
> GLT_CURRENT__TRANSACTION.Transaction_Desc, GLT_CURRENT__TRANSACTION.Debit,
> GLT_CURRENT__TRANSACTION.Credit
> FROM GLM_MASTER__ACCOUNT1 INNER JOIN GLT_CURRENT__TRANSACTION ON
> GLM_MASTER__ACCOUNT1.Account = GLT_CURRENT__TRANSACTION.Account
> GROUP BY GLM_MASTER__ACCOUNT1.Account, GLM_MASTER__ACCOUNT1.Account_Title,
> GLT_CURRENT__TRANSACTION.Accounting_Date, GLT_CURRENT__TRANSACTION.Batch,
> GLT_CURRENT__TRANSACTION.Transaction_Desc, GLT_CURRENT__TRANSACTION.Debit,
> GLT_CURRENT__TRANSACTION.Credit
> HAVING (((GLM_MASTER__ACCOUNT1.Account)>="1-az-88-6007" And
> (GLM_MASTER__ACCOUNT1.Account)<="1-az-99-9997") AND
> ((GLT_CURRENT__TRANSACTION.Accounting_Date)>=#1/1/2007# And
> (GLT_CURRENT__TRANSACTION.Accounting_Date)<=#9/30/2007#));
>
> I am pulling account # and account title from the GLM Master, and then the
> accounting information from the GLT Current Transaction
>
> "Jerry Whittle" wrote:
>
> > Queries don't remove records unless it's a delete query. Rather they don't
> > return records that don't meet the criteria. Therefore we need to know what
> > the query is asking to return.
> >
> > Show us the SQL. Open the query in design view. Next go to View, SQL View
> > and copy and past it here. Information on primary keys and relationships
> > would be a nice touch too.
> > --
> > Jerry Whittle, Microsoft Access MVP
> > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> >
> > "rgluch74" wrote:
> >
> > > I am working on a report for my company, and I am linking tables to our
> > > accounting software and all information is coming through on the tables, but
> > > when I create a query to narrow down the information, Access is removing
> > > certain records that appear to be duplicate information. This is not the
> > > case however, and I am wondering if anyone knows where I can look to turn
> > > this feature off, if it is a feature that is on? Please help!!!

 
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
Designing a Query or Report to list all records including duplicat Jon H Microsoft Access Reports 2 13th May 2008 05:50 PM
Macro to move info and delete duplicat records =?Utf-8?B?Qm9iIEtvcHA=?= Microsoft Excel Programming 9 23rd Dec 2005 08:01 PM
Purging Duplicat Records Steve Emerick Microsoft Excel Misc 1 4th Oct 2003 11:56 PM
Re: Merging Table/Delete duplicat records Michel Walsh Microsoft Access Queries 2 26th Aug 2003 11:54 AM
Re: Merging Table/Delete duplicat records Michel Walsh Microsoft Access Queries 0 21st Aug 2003 12:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:10 PM.