J
jpgoossen via AccessMonster.com
Hi,
I have a table that combines the data of two underlying tables. The
underlying tables are EMPLOYEE and LOCATION. These are combined into a table
WORKPLACE. I have a form for entering new workplaces (through two combo boxes,
selecting records from EMPLOYEE and LOCATION on unique ID fields). I have a
separate form for changing the combination, based on selecting the name of
the employee and changing the associated location to create a new workplace.
What I cannot seem to be able to do, is delete a workplace combination. The
underlying record in WOKPLACE needs to be deleted in some cases, while the
EMPLOYEE and LOCATION tables and thus the associated records therein should
remain untouched. I tried a form based on a query WORKPLACE_PLUS that
combines the three tables so that the data professional can select on
employee name. A lot of employee and location details are of course stored in
the underlying tables EMPLOYEE and LOCATION, while only the unique ID's from
these tables are stored in the WORKPLACE table.
Placing a Delete button on the form, in Design View makes is easy, but
clicking it does NOT delete the record in WORKPLACE. Added Me.Requery and Me.
Form.Requery but that did not achieve anything either.
ANy Idea what I am doing wrong?
Thanks in advance,
Patrick
I have a table that combines the data of two underlying tables. The
underlying tables are EMPLOYEE and LOCATION. These are combined into a table
WORKPLACE. I have a form for entering new workplaces (through two combo boxes,
selecting records from EMPLOYEE and LOCATION on unique ID fields). I have a
separate form for changing the combination, based on selecting the name of
the employee and changing the associated location to create a new workplace.
What I cannot seem to be able to do, is delete a workplace combination. The
underlying record in WOKPLACE needs to be deleted in some cases, while the
EMPLOYEE and LOCATION tables and thus the associated records therein should
remain untouched. I tried a form based on a query WORKPLACE_PLUS that
combines the three tables so that the data professional can select on
employee name. A lot of employee and location details are of course stored in
the underlying tables EMPLOYEE and LOCATION, while only the unique ID's from
these tables are stored in the WORKPLACE table.
Placing a Delete button on the form, in Design View makes is easy, but
clicking it does NOT delete the record in WORKPLACE. Added Me.Requery and Me.
Form.Requery but that did not achieve anything either.
ANy Idea what I am doing wrong?
Thanks in advance,
Patrick