Hi guys, I was wondering if anyone could help me with the following:
I have a form which is driven by a "select customer" combo list.
Within this form there is a child form linked on customer ID which enables a user to raise an issue relating specifically to that customer.
This child form is based on a simple "Issues Table" with the following fields "Customer ID", Issue Category, Issue Detail, Raised By, Issue Closed, Issue Closed By.
I need a query (which I will run on the main form's open event, "add issue" on click event, and "issue closed by" aterupdate event) which will check to see if there are any records in the "Issues Table", which match the customer id of the customer currently selected in the main combo list, where the "issue closed" checkbox has not been ticked. If such a record exists I would like another checkbox on the main form called something like "unresolved issue exists" to be set to "-1", if there are no such records I would like "unresolved issue exists" to be set to "0".
I hope this is clear. I'm struggling with it because I have an inadequate understanding of how to query specific records in a table, based on a given criteria (i.e. "customer id"). I'm keen to learn, so if anyone has a link explaining this it would be greatly appreciated.
You all do a great job, and provide an invaluable service. Thanks in advance for your help.
I have a form which is driven by a "select customer" combo list.
Within this form there is a child form linked on customer ID which enables a user to raise an issue relating specifically to that customer.
This child form is based on a simple "Issues Table" with the following fields "Customer ID", Issue Category, Issue Detail, Raised By, Issue Closed, Issue Closed By.
I need a query (which I will run on the main form's open event, "add issue" on click event, and "issue closed by" aterupdate event) which will check to see if there are any records in the "Issues Table", which match the customer id of the customer currently selected in the main combo list, where the "issue closed" checkbox has not been ticked. If such a record exists I would like another checkbox on the main form called something like "unresolved issue exists" to be set to "-1", if there are no such records I would like "unresolved issue exists" to be set to "0".
I hope this is clear. I'm struggling with it because I have an inadequate understanding of how to query specific records in a table, based on a given criteria (i.e. "customer id"). I'm keen to learn, so if anyone has a link explaining this it would be greatly appreciated.
You all do a great job, and provide an invaluable service. Thanks in advance for your help.