S
Such a Beginner
My Unbound Combo Box is a dropdown list of Anthocyanins, Liver Lipids,
Plasma, and ORAC. The code below always results in the first DoCmd statement
being executed. In other words, if I update the Unbound box with any word
from the above list, I get the same result. Could someone please diagnose my
code problem (see below)?
Private Sub Combo0_AfterUpdate()
If Unbound = Anthocyanins Then
DoCmd.OpenForm "frmAnthocyanins", acNormal
ElseIf Unbound = Liver_Lipids Then
DoCmd.OpenForm "frmLiverLipids", acNormal
ElseIf Unbound = Plasma Then
DoCmd.OpenForm "frmPlasma", acNormal
ElseIf Unbound = ORAC Then
DoCmd.OpenForm "frmORAC", acNormal
End If
End Sub
Plasma, and ORAC. The code below always results in the first DoCmd statement
being executed. In other words, if I update the Unbound box with any word
from the above list, I get the same result. Could someone please diagnose my
code problem (see below)?
Private Sub Combo0_AfterUpdate()
If Unbound = Anthocyanins Then
DoCmd.OpenForm "frmAnthocyanins", acNormal
ElseIf Unbound = Liver_Lipids Then
DoCmd.OpenForm "frmLiverLipids", acNormal
ElseIf Unbound = Plasma Then
DoCmd.OpenForm "frmPlasma", acNormal
ElseIf Unbound = ORAC Then
DoCmd.OpenForm "frmORAC", acNormal
End If
End Sub