Kiranpendy
Registered User.
- Local time
- Yesterday, 22:11
- Joined
- Sep 3, 2019
- Messages
- 15
I have two tables(main table and history table) and a form for the Main table. The Main form consists of multiple drop downs. I want to track the history of the selections in those drop downs. So when a user makes several changes in the Main form, the previous selections need to go to the history table and the main table should have the fresh selections. I tried using the following code but this duplicates the history table due to the select command. is there a better way?
Code:
CurrentDb.Execute "INSERT INTO History ( Dropdown1,Dropdown2,Dropdown3..,Dropdown40)SELECT Main.dropdown1,Main.dropdown2,.....,Main.dropdown40]FROM Main"
Code:
CurrentDb.Execute "INSERT INTO History ( Dropdown1,Dropdown2,Dropdown3..,Dropdown40)SELECT Main.dropdown1,Main.dropdown2,.....,Main.dropdown40]FROM Main"