Account Reconciliation Query
I am trying to create clearing logic for a table. Unfortunately, I am a very new user to Access.
I have downloaded the account information from our computer system to perform account reconciliation. I would like to remove offsetting entries from the table to leave me with only open items.
I have a table similar to the following:
ID (Primary Key Assigned by Access during import)
Location
Customer
Date
System
Amount
Sample data:
ID Location Customer C Code Date System Amount
1 Denver 456 AB 11/12/2003 G1 50.00
2 Denver 456 AB 11/12/2003 G2 -50.00
3 Denver 456 AB 11/12/2003 G1 -50.00
4 Denver 456 AB 11/12/2003 G1 50.00
5 Denver 456 AB 11/12/2003 G2 -50.00
6 Denver 456 AB 11/12/2003 G1 50.00
7 Denver 456 AB 11/13/2003 G1 50.00
I would like to know how to create a query or more if needed, to obtain the following:
The data separated into 2 tables (Open Items and Offset) using the following logic
Location = Location
Customer = Customer
C Code = C Code
Date = Date
System ID <> System ID (more specifically G1 must offset with G2)
Amount = -Amount (The amount must add to 0)
Example of Results:
Merged Table
ID Location Customer C Code Date System Amount
1 Denver 456 AB 11/12/2003 G1 50.00
2 Denver 456 AB 11/12/2003 G2 -50.00
5 Denver 456 AB 11/12/2003 G2 -50.00
6 Denver 456 AB 11/12/2003 G1 50.00
Open Items
ID Location Customer C Code Date System Amount
3 Denver 456 AB 11/12/2003 G2 -50.00
4 Denver 456 AB 11/12/2003 G1 50.00
7 Denver 456 AB 11/13/2003 G1 50.00
The problem I am having is that I do not understand how to just pull offsetting items for example to obtain the above results. For example how to I limit the query to just finding 1 offsetting entry?
I am trying to create clearing logic for a table. Unfortunately, I am a very new user to Access.
I have downloaded the account information from our computer system to perform account reconciliation. I would like to remove offsetting entries from the table to leave me with only open items.
I have a table similar to the following:
ID (Primary Key Assigned by Access during import)
Location
Customer
Date
System
Amount
Sample data:
ID Location Customer C Code Date System Amount
1 Denver 456 AB 11/12/2003 G1 50.00
2 Denver 456 AB 11/12/2003 G2 -50.00
3 Denver 456 AB 11/12/2003 G1 -50.00
4 Denver 456 AB 11/12/2003 G1 50.00
5 Denver 456 AB 11/12/2003 G2 -50.00
6 Denver 456 AB 11/12/2003 G1 50.00
7 Denver 456 AB 11/13/2003 G1 50.00
I would like to know how to create a query or more if needed, to obtain the following:
The data separated into 2 tables (Open Items and Offset) using the following logic
Location = Location
Customer = Customer
C Code = C Code
Date = Date
System ID <> System ID (more specifically G1 must offset with G2)
Amount = -Amount (The amount must add to 0)
Example of Results:
Merged Table
ID Location Customer C Code Date System Amount
1 Denver 456 AB 11/12/2003 G1 50.00
2 Denver 456 AB 11/12/2003 G2 -50.00
5 Denver 456 AB 11/12/2003 G2 -50.00
6 Denver 456 AB 11/12/2003 G1 50.00
Open Items
ID Location Customer C Code Date System Amount
3 Denver 456 AB 11/12/2003 G2 -50.00
4 Denver 456 AB 11/12/2003 G1 50.00
7 Denver 456 AB 11/13/2003 G1 50.00
The problem I am having is that I do not understand how to just pull offsetting items for example to obtain the above results. For example how to I limit the query to just finding 1 offsetting entry?