Hello,
What I am trying to achieve?
I have this form.
The user needs to select the next cdd status by selecting a value from the combo box highlighted in yellow in the snapshot.
Currently, the combo box shows all possible values for the cdd status as you can see from the below snapshot.
I don't want that, I only want it to show only "Completed" because if you look at the Audit Trail of that Client in the snapshot, you can see the latest status (i.e. the one without an EndDate) is Fully Remediated and the next stage after Fully Remediated is Completed.
That is just one example. If the latest status was say "With Analyst" then the next possible stage is "With RM" or "With QC" so the dropdown combo box should show only 2 values "With RM" or "With QC" as the only possible values to select.
Getting the latest CDD Status is not difficult, I can use this SQL but not sure how to reference the caseID textbox that lives in my main form which contains the unique identifier for the client.
I guess I need to use a Query for this SQL right?
Then I need to write an if-else logic to display all possible scenarios as follows:
if SQL returns = "With Analyst" then
Combo Box for CDDStatus = should show "With RM" or "With QC"
else if SQL returns = "Fully Remediated" then
Combo Box for CDDStatus = should show "Completed"
else if SQL returns = "With QC" then
Combo Box for CDDStatus = should show "With FCT" or "Pending CIF Closure"
end if
Will anyone know how I can accomplish this please?
Thank you in advance!!