Hi,
I have an access project with two tables. “Archives” contains all the folders of an enterprise with for each folder its title and the ID of the division to which it belongs. The other table is called “Divisions” and contains the division ID’s and for each ID the name of the corresponding division.
Schematically, these tables look as follows:
Archives
- Title
- Division ID
Divisions
- ID
- Name
Now I’m having a datasheet form in which I show all folders. Basically, this corresponds to the “Archives” table. Only, instead of showing the Division ID, I linked both tables so the Division name is shown instead.
The data in the form can be modified and I want that the user can modify the division of a folder by selecting the desired division name out of a listbox. I managed to add a listbox to the datasheet that shows all the division names. However, when I click another division in the listbox, instead of changing the division ID of the folder, the name of the division in the “Divisions” table is modified.
How should I modify the listbox so that it modifies the Division ID in the “Archives” table instead of the name in the “Divisions” table? Somehow I should just keep working on ID level but mask it for the user
Thanks in advance
I have an access project with two tables. “Archives” contains all the folders of an enterprise with for each folder its title and the ID of the division to which it belongs. The other table is called “Divisions” and contains the division ID’s and for each ID the name of the corresponding division.
Schematically, these tables look as follows:
Archives
- Title
- Division ID
Divisions
- ID
- Name
Now I’m having a datasheet form in which I show all folders. Basically, this corresponds to the “Archives” table. Only, instead of showing the Division ID, I linked both tables so the Division name is shown instead.
The data in the form can be modified and I want that the user can modify the division of a folder by selecting the desired division name out of a listbox. I managed to add a listbox to the datasheet that shows all the division names. However, when I click another division in the listbox, instead of changing the division ID of the folder, the name of the division in the “Divisions” table is modified.
How should I modify the listbox so that it modifies the Division ID in the “Archives” table instead of the name in the “Divisions” table? Somehow I should just keep working on ID level but mask it for the user
Thanks in advance