KP_SoCal
Registered User.
- Local time
- Today, 03:00
- Joined
- Dec 4, 2009
- Messages
- 39
Calling any VBA genius! Here’s what I’m trying to do. I attached an excel document that ties in with my question.
In Query1, I pull my raw data to create Table1. I need Query2 to evaluate the fields in each row of Table1 that match the Master Table and clear the fields (or set to Null) that do not match. The only exception would be, if NONE of the fields in Table1 match fields in the Master Table, then set the Field Qty value to NULL in Table1. Finally, I create a simple query that groups the results of the Table1 update to give me subtotals for each row. In order for this to make better sense, please see my attached excel document.
The part that I’m stuck on is Query2. I know VBA holds the answer in making this process more efficient as opposed to have to write a new query for each and every possible combination. Whoever figures this out wins the Academy Award of Super Genius in my book.
Thanks so much for any ideas!
In Query1, I pull my raw data to create Table1. I need Query2 to evaluate the fields in each row of Table1 that match the Master Table and clear the fields (or set to Null) that do not match. The only exception would be, if NONE of the fields in Table1 match fields in the Master Table, then set the Field Qty value to NULL in Table1. Finally, I create a simple query that groups the results of the Table1 update to give me subtotals for each row. In order for this to make better sense, please see my attached excel document.
The part that I’m stuck on is Query2. I know VBA holds the answer in making this process more efficient as opposed to have to write a new query for each and every possible combination. Whoever figures this out wins the Academy Award of Super Genius in my book.
Thanks so much for any ideas!
