Hi,
I have a form which contains 2combo boxes (cboMag and cboIssue) bound to two fields (Magazine and Issue), both of which have the Required property = YES. The range of values which can be entered in the 2nd combo box depend on the selection in the 1st combo box.
The problem I have is that if the user CHANGES the value in the 1st field, I want the form to reset the 2nd field to NULL, so that IT MUST be entered again. However if I try this with me.cboIssue= NULL in the AfterUpdate event of cboMag, Access throws an error because cboIssue is bound to a required field. How do I get round this without removed the required field property?
To explain the problem specifically:
My tbl_Bookings has 2 required fields; Magazine and Issue. All possible combinations of Magazine and Issue are stored in tbl_MagazineIssues as follows:
Magazine - Issue
ABC - 01/2016
ABC - 02/2016
ABC - 03/2016
XYZ - 01/2016
XYZ - 02/2016
When the user selects Magazine ABC in the 1st combo box (cboMag) on my booking form, the 2nd combo box (cboIssue) is requeried to only show issues for that magazine. However, if the user selects ABC in cboMag and then 03/2016 in cboIssue, and then decides to change cboMag to XYZ, the value 03/2016 remains in the issue field bound to cboIssue. I want cboIssue to be null so that a new Issue selection has to take place.
As always, any help greatly appreciated!
Jim
I have a form which contains 2combo boxes (cboMag and cboIssue) bound to two fields (Magazine and Issue), both of which have the Required property = YES. The range of values which can be entered in the 2nd combo box depend on the selection in the 1st combo box.
The problem I have is that if the user CHANGES the value in the 1st field, I want the form to reset the 2nd field to NULL, so that IT MUST be entered again. However if I try this with me.cboIssue= NULL in the AfterUpdate event of cboMag, Access throws an error because cboIssue is bound to a required field. How do I get round this without removed the required field property?
To explain the problem specifically:
My tbl_Bookings has 2 required fields; Magazine and Issue. All possible combinations of Magazine and Issue are stored in tbl_MagazineIssues as follows:
Magazine - Issue
ABC - 01/2016
ABC - 02/2016
ABC - 03/2016
XYZ - 01/2016
XYZ - 02/2016
When the user selects Magazine ABC in the 1st combo box (cboMag) on my booking form, the 2nd combo box (cboIssue) is requeried to only show issues for that magazine. However, if the user selects ABC in cboMag and then 03/2016 in cboIssue, and then decides to change cboMag to XYZ, the value 03/2016 remains in the issue field bound to cboIssue. I want cboIssue to be null so that a new Issue selection has to take place.
As always, any help greatly appreciated!
Jim