I have a problem and can't find a solution or don't know how to describe it. I'm trying to create an ms access database for our accounting. I import a bank transfers summary from our bank as a csv file and import it temporary to Table2 (TmpBankImport). Now I would like to automate and add a code to the recurring transactions. I want to do this by creating a table Table1 (Codes) where i put in a unique string value that is a part of the value from different fields of the Table2 (TmpBankImport) AKA ACCOUNTNR, DESCRIPTION, REFERENCE . So as a result I want to create a table like Table3 (BankReady) where the CODE and TOCHECK is set . How can I search for all the keywords that are in table1 in all the Table2 fields and create Table3 in ms access 2016. Could you guys help me on the way ?
Thanks for the help.
here an example of the database
EDIT: The example was just an example because my real database was to complex to write it down. I put the real database in attachment. Please take a look at that one.
Tabel1 (Codes)
Table2 (TmpBankImport)
This is the table that i want to achieve
Table3 (BankReady)
Thanks for the help.
here an example of the database
EDIT: The example was just an example because my real database was to complex to write it down. I put the real database in attachment. Please take a look at that one.
Tabel1 (Codes)
SEARCHFOR | CODE | TOCHECK |
ALDI | ALD | N |
PAYPAL | PAP | Y |
LIDL | LDL | N |
REF:888 | DDL | N |
BE88.8888.888 | SSD | Y |
0123456 | BBL | N |
Table2 (TmpBankImport)
ACCOUNTNR | DESCRIPTION | REFERENCE |
BE22.2222.222 | Purchase ALDI | REF: 111111111 |
BE33.3333.333 | Purchase BRICO | PURCHASE 0123456 |
BE44.5555.777 | PayPal (Europe) | S. C.MED: 999999 |
BE11.1234.123 | SECURITY SERV. | SERVICE NR:23232323 |
BE22.2222.222 | Purchase ALDI | REF: 22222222 |
BE33.4444.555 | Purchase LIDL | SOME REFERENCE Nr |
BE77.7777.777 | GOOGLE INC | Google App REF:888 |
BE88.8888.888 | PC ONLINE SHOP | Reference ID:blabla |
This is the table that i want to achieve
Table3 (BankReady)
ACCOUNTNR | DESCRIPTION | REFERENCE | CODE | TOCHECK |
BE22.2222.222 | Purchase ALDI | REF: 111111111 | ALD | N |
BE33.3333.333 | Purchase BRICO | PURCHASE 0123456 | BBL | N |
BE44.5555.777 | PayPal (Europe) | S. C.MED: 999999 | PAP | Y |
BE11.1234.123 | SECURITY SERV. | SERVICE NR:23232323 | Y | |
BE22.2222.222 | Purchase ALDI | REF: 22222222 | ALD | N |
BE33.4444.555 | Purchase LIDL | SOME REFERENCE Nr | LDL | N |
BE77.7777.777 | GOOGLE INC | Google App REF:888 | DDL | N |
BE88.8888.888 | PC ONLINE SHOP | Reference ID:blabla | SSD | Y |
Attachments
Last edited: