I am having trouble working out how to change the row source of a combo box based on the value of a text box.
I have 2 controls - txtCurrentStatus is a text box and cboNewStatus is a combo box.
I would like to change the row source of cboNewStatus based on the value of txtCurrentStatus, for example if the value of txtCurrentStatus is "Open" then the row source of cboNewStatus should be changed to my tblOpen table which holds all possible "new status" values when the txtCurrentStatus value is "Open"
I've been trying to perform this in the forms On Current event as it is the After Update event of cboNewStatus that updates the txtCurrentStatus.
I've tried adding list items 'dynamically' based on txtCurrentStatus by using the additem and removeitem functions, but I can't get this to work properly either.
The aim is that only the 'next status' values that are possible for the 'current status' are displayed to the user, rather than all statuses.
I've attached a small sample database which should sho what I am trying to do.
Any help greatly appreciated
I have 2 controls - txtCurrentStatus is a text box and cboNewStatus is a combo box.
I would like to change the row source of cboNewStatus based on the value of txtCurrentStatus, for example if the value of txtCurrentStatus is "Open" then the row source of cboNewStatus should be changed to my tblOpen table which holds all possible "new status" values when the txtCurrentStatus value is "Open"
I've been trying to perform this in the forms On Current event as it is the After Update event of cboNewStatus that updates the txtCurrentStatus.
I've tried adding list items 'dynamically' based on txtCurrentStatus by using the additem and removeitem functions, but I can't get this to work properly either.
The aim is that only the 'next status' values that are possible for the 'current status' are displayed to the user, rather than all statuses.
I've attached a small sample database which should sho what I am trying to do.
Any help greatly appreciated