I am trying to complete a record to save in my table. My system is saved through form view. With a new button button been pressed which works through a macro to make a new record.
The trouble is I have three subforms which control access to my other 3 tables (Officer, Offender and Victim). What I want to do is take the key fields from these other 3 tables (two of these are hidden from the user (OffenderID and VIctimId, which are Autonumber fields.) to complete the record for my main table.
At the moment I can only add the fields that are gotten from the incident form. What would be best is to allow the user to search each of the subforms which all contain a subform of there own (this contains a datasheet of the respective tables, which display all the current records), So when the user types in the officer collar number it will display that officer in its datasheet. Then the user could select this officer and there details will be displayed in the form textboxes. The same should happen for the VIctim and Offender, but the search will be done by their name. So when you try to save an Incident record. It takes the Victim ID, Offender Id and Officer Id of the records that are currently displayed in the forms textboxes.
Sorry for such a long question. Hope you can help.
The trouble is I have three subforms which control access to my other 3 tables (Officer, Offender and Victim). What I want to do is take the key fields from these other 3 tables (two of these are hidden from the user (OffenderID and VIctimId, which are Autonumber fields.) to complete the record for my main table.
At the moment I can only add the fields that are gotten from the incident form. What would be best is to allow the user to search each of the subforms which all contain a subform of there own (this contains a datasheet of the respective tables, which display all the current records), So when the user types in the officer collar number it will display that officer in its datasheet. Then the user could select this officer and there details will be displayed in the form textboxes. The same should happen for the VIctim and Offender, but the search will be done by their name. So when you try to save an Incident record. It takes the Victim ID, Offender Id and Officer Id of the records that are currently displayed in the forms textboxes.
Sorry for such a long question. Hope you can help.