Hello My Friends ,
Because I am new in access and will explain you my problem. I have four databases as follows:
Table 1: Fields: ID - Company Name - Total Amount
Tables 2, 3, 4: Fields: Company Name - Code - Date - Amount
Table 5 ( Search Result ): Table1.ID - Table1.Company Name - Table1.Total Amount - Table2,3,4.Code - Table2,3,4.Date - Table2,3,4.Amount
1- I need a query which search all Tables2,3,4 for field company name in first record of Table1 and if found records match to company name, add to Table5 and if not found any match, returned 0 as value to Table5 and then go to the next record in Table1 and do search all other 3 Tables again. I need to find a way to program automatically to do it and find any results from all three other Tables. Note: All Tables are inside an .accdb database.
2- Is it possible when program find matchs , mark finded records in Table1 for delete . Because in the end of program , we should have to tables . Table5 with result of search and Table1 with records that doesn,t math in other Tables.
Too much thanks for your help
Jack