Hi there.
Sorry about the heading being ambiguous. I Think I'll need some help with this one.
The db I'm working on is for complaints. There are three stages of complaints.
I have a main form and a sub form. The main form has the complainant and the subform, the details of complaint for which there can be three complaints. (On the complaint table)
The main form has a listbox which lists the complaint stages 1-3 (if the stage reaches to three)
The underlying recordsource of the listbox bound column is the ID for the complaint table. When selected this will filter to the complaint on the subform.
What I'm trying to do is have a button on the main form that adds a new record to the complaint table with the matching complainant ID.
Because there are only three stages I also need to find a way to populate the table with the next stage.
This means that if there is only 1 stage (one record) and the user presses the button, a new record will be created on the subform and it will automatically populate the stage field with stage 2. If that makes sense. This will happen until it reaches stage three and my plan is to, perhaps add a condition so no more records are added.
I've been looking at the addnew method but don't know how to add the record so that it's adding it to the proper parent (complainant) ID.
Does anyone know of ways I can achieve both these issues?
Thank you
Sorry about the heading being ambiguous. I Think I'll need some help with this one.
The db I'm working on is for complaints. There are three stages of complaints.
I have a main form and a sub form. The main form has the complainant and the subform, the details of complaint for which there can be three complaints. (On the complaint table)
The main form has a listbox which lists the complaint stages 1-3 (if the stage reaches to three)
The underlying recordsource of the listbox bound column is the ID for the complaint table. When selected this will filter to the complaint on the subform.
What I'm trying to do is have a button on the main form that adds a new record to the complaint table with the matching complainant ID.
Because there are only three stages I also need to find a way to populate the table with the next stage.
This means that if there is only 1 stage (one record) and the user presses the button, a new record will be created on the subform and it will automatically populate the stage field with stage 2. If that makes sense. This will happen until it reaches stage three and my plan is to, perhaps add a condition so no more records are added.
I've been looking at the addnew method but don't know how to add the record so that it's adding it to the proper parent (complainant) ID.
Does anyone know of ways I can achieve both these issues?
Thank you