Hello!
I am quite new at writing VBA and appreciate any help that I could get. I can usually troubleshoot the basic needs of my database, but this one was a little beyond my current skills.I am using Access 2003 and working with related records between two forms (picture attached). The first (pictured) form is an App form that links to a Classes form through the Class List button.
My problem is that if the user clicks the 'Class List' button before an App is created, then it produces a Run-time 3075 error because it can't find a related record.
What I want to to is make an If statement that: 1) If record has matching record, simply open the form (what happens now) and 2) If no matching record, First creating a record in the current form, and then open the second form.
Thanks for any help!
I am quite new at writing VBA and appreciate any help that I could get. I can usually troubleshoot the basic needs of my database, but this one was a little beyond my current skills.I am using Access 2003 and working with related records between two forms (picture attached). The first (pictured) form is an App form that links to a Classes form through the Class List button.
My problem is that if the user clicks the 'Class List' button before an App is created, then it produces a Run-time 3075 error because it can't find a related record.
What I want to to is make an If statement that: 1) If record has matching record, simply open the form (what happens now) and 2) If no matching record, First creating a record in the current form, and then open the second form.
Thanks for any help!