Hello all-
I have a form with several subforms in it. One of them has a combo box which a doctor uses to select a medical diagnosis code. There is another combo box which is sometimes used to select a relevant diagnosis modifier.
I have it coded so that when the AfterUpdate event occurs on the diagnosis combo box, the modifiers combo box populates based on a simple query, using the diagnosis selection as it's where clause criteria.
This works perfectly, but only when initially adding a record. When subsequently opening the form to view or edit records, the modifier combo box, of course, is devoid of options unless you first click on and re-select an option from the diagnosis combo box. In fact, the actual stored modifier value doesn't even appear until you re-select an option from the diagnosis combo box???
I'm hoping somebody can tell me how to cause the modifier combo box to populate with the correct stored value and recordset data when the form loads and when there is a value in the diagnosis field.
I played around with the Open and BeforeUpdate events, but had no success. I also tried to find a way to utilize the Load event for the form..and the subform which these controls reside, but had no luck with that either.
Any help you can give me would be much appreciated!
Thanks,
Steve
Steve
---------------------------------------
IF WebApplicationProgrammer = True Then
ElectronicSheepHerder = True
End If
I have a form with several subforms in it. One of them has a combo box which a doctor uses to select a medical diagnosis code. There is another combo box which is sometimes used to select a relevant diagnosis modifier.
I have it coded so that when the AfterUpdate event occurs on the diagnosis combo box, the modifiers combo box populates based on a simple query, using the diagnosis selection as it's where clause criteria.
This works perfectly, but only when initially adding a record. When subsequently opening the form to view or edit records, the modifier combo box, of course, is devoid of options unless you first click on and re-select an option from the diagnosis combo box. In fact, the actual stored modifier value doesn't even appear until you re-select an option from the diagnosis combo box???
I'm hoping somebody can tell me how to cause the modifier combo box to populate with the correct stored value and recordset data when the form loads and when there is a value in the diagnosis field.
I played around with the Open and BeforeUpdate events, but had no success. I also tried to find a way to utilize the Load event for the form..and the subform which these controls reside, but had no luck with that either.
Any help you can give me would be much appreciated!
Thanks,
Steve
Steve
---------------------------------------
IF WebApplicationProgrammer = True Then
ElectronicSheepHerder = True
End If