M
marcus.
Hi,
I'm stuck and need some guidance.
I have two tables (Tbl1 & Tbl2) with the following fields:
Tbl1: Tbl1_ID (unique number), Account# (5 digit field), TextField (255 Characters)
Tbl2: Account# (5 digit field), Reference (20 Characters), Tbl2_ID (unique number)
I want to create a VBA script (unless there is another alternative) that will:
1) for each record in Tbl1
2) look up for each Tbl1.Account# = Tbl2.Account#
3) find [Tbl2].[Reference] text inside [Tbl1].[TextField]
4) return [Tbl2].[Tbl2_ID]
Note there maybe be more than on instance. The macro should countinue to add matches until all records in Account# match have been checked. (or Null where no records are found).
I'm not sure where to start.
Any guidance would be appreciated.
I'm stuck and need some guidance.
I have two tables (Tbl1 & Tbl2) with the following fields:
Tbl1: Tbl1_ID (unique number), Account# (5 digit field), TextField (255 Characters)
Tbl2: Account# (5 digit field), Reference (20 Characters), Tbl2_ID (unique number)
I want to create a VBA script (unless there is another alternative) that will:
1) for each record in Tbl1
2) look up for each Tbl1.Account# = Tbl2.Account#
3) find [Tbl2].[Reference] text inside [Tbl1].[TextField]
4) return [Tbl2].[Tbl2_ID]
Note there maybe be more than on instance. The macro should countinue to add matches until all records in Account# match have been checked. (or Null where no records are found).
I'm not sure where to start.
Any guidance would be appreciated.