padlocked17
Registered User.
- Local time
- Today, 02:23
- Joined
- Aug 29, 2007
- Messages
- 276
Good Evening,
I have a form called "SystemDetailModal" that is bound to a table, "tblSystem".
I have a continuous subform that is bound to "tblEvent" and it allows for Events to be added in connection to it's respective System (parent form), but those Events need to be assigned to a LineOfEffort with a specific LineOfEffortType that the subform is designed around. So when a new Event is added, I would need to check if a LineOfEffort record exists for that System, and if it doesn't, create it for linkage to the Event that is being added where the LineOfEffortType equals a certain value based on the design of the subform.
My table layout looks like this:
tblSystem
SystemID
tblEvent
EventID
SystemID
LineOfEffortID
tblLineofEffort
LineOfEffortID
LineOfEffortCategoryID
tblLineofEffortType
LineOfEffortCategoryID
Any thoughts on how to handle this or a better way to do it? I know I could write some VBA to handle the if/then, but I'd prefer to keep it to SQL or Form design if at all possible. TIA!
I have a form called "SystemDetailModal" that is bound to a table, "tblSystem".
I have a continuous subform that is bound to "tblEvent" and it allows for Events to be added in connection to it's respective System (parent form), but those Events need to be assigned to a LineOfEffort with a specific LineOfEffortType that the subform is designed around. So when a new Event is added, I would need to check if a LineOfEffort record exists for that System, and if it doesn't, create it for linkage to the Event that is being added where the LineOfEffortType equals a certain value based on the design of the subform.
My table layout looks like this:
tblSystem
SystemID
tblEvent
EventID
SystemID
LineOfEffortID
tblLineofEffort
LineOfEffortID
LineOfEffortCategoryID
tblLineofEffortType
LineOfEffortCategoryID
Any thoughts on how to handle this or a better way to do it? I know I could write some VBA to handle the if/then, but I'd prefer to keep it to SQL or Form design if at all possible. TIA!