J
Jesse
I'd like to test/compare adjacent records to look for duplicate orders
and missing orders from my shopping cart data.
I am an Access 2000 newbie. I had these tests in my db when I used
Excel, but I don't know how to recreate them in Access.
My db has records imported from a shopping cart. The cart provides a
sequential order number -- adding 1 to the prior order number. Due to
ongoing software glitch issues, sometimes (if rarely) it skips a
number -- or, it doesn't skip a number but an order that exists does
not download. And, sometimes (for whatever reasons) a customer's order
is entered twice with different order numbers -- usually 1st order
number +1 or +2.
The order number is the "key" field for all transactions.
So, I want to test for missing order numbers and for possibly
duplicate orders. For each test field, if a test shows a problem, it
would yield a value of 1; else 0.
To test for duplicate orders, I'd like to compare values in two fields
in the current record (e.g., last_name and zip_cd) to the same field
values in the prior two records.
To test for missing orders, I'd like to take the current order number,
subtract 1, and see if that equals the order number of the prior
record.
Is there a straightforward way to do this? If so, advice and/or hints
would be appreciated. TIA. -- Jesse
and missing orders from my shopping cart data.
I am an Access 2000 newbie. I had these tests in my db when I used
Excel, but I don't know how to recreate them in Access.
My db has records imported from a shopping cart. The cart provides a
sequential order number -- adding 1 to the prior order number. Due to
ongoing software glitch issues, sometimes (if rarely) it skips a
number -- or, it doesn't skip a number but an order that exists does
not download. And, sometimes (for whatever reasons) a customer's order
is entered twice with different order numbers -- usually 1st order
number +1 or +2.
The order number is the "key" field for all transactions.
So, I want to test for missing order numbers and for possibly
duplicate orders. For each test field, if a test shows a problem, it
would yield a value of 1; else 0.
To test for duplicate orders, I'd like to compare values in two fields
in the current record (e.g., last_name and zip_cd) to the same field
values in the prior two records.
To test for missing orders, I'd like to take the current order number,
subtract 1, and see if that equals the order number of the prior
record.
Is there a straightforward way to do this? If so, advice and/or hints
would be appreciated. TIA. -- Jesse