knowledge76
Registered User.
- Local time
- Today, 05:41
- Joined
- Jan 20, 2005
- Messages
- 165
HI Friends;
I am working on a problem for the last two day and till now I have no solution.
I have a table with a field DB-Key and it comes more than once in a table and another fields TYPE.
Now what I am trying to do is to go through each DB-KEY and when for a DB-Key the TYpe is 6 or 7 then the DB-Key should be saved in a table say A otherwise it should be saved in Table B.
Example of first possibitlities
DB-Key Type
1 5
1 4
1 6
The above DB-Key should be saved once in Table A, because for this DB-Key TYPE is 6 in the last record.
Example of second possibitlities
DB-Key Type
1 2
1 9
1 8
The above DB-Key should be saved once in Table B, because for this DB-Key TYPE 6 or 7is not found in the records.
I tried this with Access Queries but it is not working. Could you please suggest me how to implement this with VBA?
Thanks
I am working on a problem for the last two day and till now I have no solution.
I have a table with a field DB-Key and it comes more than once in a table and another fields TYPE.
Now what I am trying to do is to go through each DB-KEY and when for a DB-Key the TYpe is 6 or 7 then the DB-Key should be saved in a table say A otherwise it should be saved in Table B.
Example of first possibitlities
DB-Key Type
1 5
1 4
1 6
The above DB-Key should be saved once in Table A, because for this DB-Key TYPE is 6 in the last record.
Example of second possibitlities
DB-Key Type
1 2
1 9
1 8
The above DB-Key should be saved once in Table B, because for this DB-Key TYPE 6 or 7is not found in the records.
I tried this with Access Queries but it is not working. Could you please suggest me how to implement this with VBA?
Thanks