Im designing a hazard log tool. I have a main form containing hazards, subform for consequences and subform for actions.
I have a form for comments, and I want to reuse that as subform for hazards, consequences and actions, such that you can comment on either of the three.
What would be a good way to go about this?
What table setup should I go for? Should I for example make 3 secondary key fields in the Comments table, 1 for hazards, 1 for consequences, 1 for actions?
Can I somehow implement a global ID? Ive tried googling for Global ID, but can't seem to get any good results so if someone has a good link please post it.
My thoughts on global ID would be to have a table with an Autonumber field called GID, and then have the hazard/consequence/actions table link to that, and get their primary key from that table. The benefit would be that when I add a subform thats used for several different items (like my comments form) that I would only need 1 secondary key column to link it to the Global ID. When I query the commetns table for example, I will be doing it from the Hazard form, and thus the query will only return the relevant comments (those comments made to a hazard)
Im unsure though as to whether there are any unforeseen problems with that. Do anyone have experience with global keys in Access?
I have a form for comments, and I want to reuse that as subform for hazards, consequences and actions, such that you can comment on either of the three.
What would be a good way to go about this?
What table setup should I go for? Should I for example make 3 secondary key fields in the Comments table, 1 for hazards, 1 for consequences, 1 for actions?
Can I somehow implement a global ID? Ive tried googling for Global ID, but can't seem to get any good results so if someone has a good link please post it.
My thoughts on global ID would be to have a table with an Autonumber field called GID, and then have the hazard/consequence/actions table link to that, and get their primary key from that table. The benefit would be that when I add a subform thats used for several different items (like my comments form) that I would only need 1 secondary key column to link it to the Global ID. When I query the commetns table for example, I will be doing it from the Hazard form, and thus the query will only return the relevant comments (those comments made to a hazard)
Im unsure though as to whether there are any unforeseen problems with that. Do anyone have experience with global keys in Access?
Comment