Good day. I am an auditor. I go out to sites to audit files (an audit instance). At each audit, I audit multiple files called certifications. Each certification has multiple findings. I have built the database, but am struggling with the forms.
I have a parent AuditInstance table. It has a primary ID, date of audit, name of auditor, and purpose of audit.
I have a child CertAudit table. It has a primary ID; it has a foreign ID (AuditInstanceI D), and other data pertaining to the certification.
All of this works beautifully within the tables themselves if I begin to enter data within AuditInstance
table. I create that record; then click on the plus; then create a CertAudit record, and click on that plus, and so forth create all my other records in all my other tables.
Now, I need to create Forms. All of my forms are based on the tables directly.
I have an AuditInstance form that creates an AuditInstance record.
I then want to use a button on the AuditInstance form to open a CertAudit form, and have the CertAudit form
populate with the AuditInstanceID I just created in the AuditInstance form. This will always be the last AuditInstanceID in the AuditInstance table. I want it to populate automatically instead of having to manually select the AuditInstanceID from within the CertAudit form.
How do I pass that last AuditInstanceID from the parent table into the child table, so that I can perhaps use
GoToRecord and Last.
I have considered a query that pulls the last AuditInstanceID , but I don't know how to make it work in
practice.
Thank you.
I have a parent AuditInstance table. It has a primary ID, date of audit, name of auditor, and purpose of audit.
I have a child CertAudit table. It has a primary ID; it has a foreign ID (AuditInstanceI D), and other data pertaining to the certification.
All of this works beautifully within the tables themselves if I begin to enter data within AuditInstance
table. I create that record; then click on the plus; then create a CertAudit record, and click on that plus, and so forth create all my other records in all my other tables.
Now, I need to create Forms. All of my forms are based on the tables directly.
I have an AuditInstance form that creates an AuditInstance record.
I then want to use a button on the AuditInstance form to open a CertAudit form, and have the CertAudit form
populate with the AuditInstanceID I just created in the AuditInstance form. This will always be the last AuditInstanceID in the AuditInstance table. I want it to populate automatically instead of having to manually select the AuditInstanceID from within the CertAudit form.
How do I pass that last AuditInstanceID from the parent table into the child table, so that I can perhaps use
GoToRecord and Last.
I have considered a query that pulls the last AuditInstanceID , but I don't know how to make it work in
practice.
Thank you.
Comment