creativefusion
Registered User.
- Local time
- Tomorrow, 09:45
- Joined
- Oct 21, 2009
- Messages
- 13
All,
I have a table of data containing 30 fields updated every morning by operations. For the purpose of providing some background to my problem, I will provide samples for 3 of these fields.
Feild 1: ITEM
Field 2: STATE
Field 3: UOM
My problem is that some of the UOM's recorded by the system are blank. For example, ITEM: 23, STATE: 1, UOM: "EA", ITEM: 23, STATE: 2, UOM: "BLANK", etc..
When I track back to the source data, I find that they (the UOM's) are not recorded in the system. As a result, I need to update all the blank records with the first valid record. Problem is, I need to do this for like 30,000 records. So it is very time consuming.
I want to know how I can do the following using open recordset loop method in VBA:
1. Open the table and find a UOM for each ITEM
2. Update all the instances of "NULL" with the UOM
Notes:
I have enclosed a sample db with data for reference.
Any help would be appreciated.
Regards,
CF
I have a table of data containing 30 fields updated every morning by operations. For the purpose of providing some background to my problem, I will provide samples for 3 of these fields.
Feild 1: ITEM
Field 2: STATE
Field 3: UOM
My problem is that some of the UOM's recorded by the system are blank. For example, ITEM: 23, STATE: 1, UOM: "EA", ITEM: 23, STATE: 2, UOM: "BLANK", etc..
When I track back to the source data, I find that they (the UOM's) are not recorded in the system. As a result, I need to update all the blank records with the first valid record. Problem is, I need to do this for like 30,000 records. So it is very time consuming.
I want to know how I can do the following using open recordset loop method in VBA:
1. Open the table and find a UOM for each ITEM
2. Update all the instances of "NULL" with the UOM
Notes:
I have enclosed a sample db with data for reference.
Any help would be appreciated.
Regards,
CF