D
DJ
I have an unbound ComboBox (LastFirst) and a bound TextBox
(PersonID) on a form. I have a query (qryPe_Calculated)
that has 2 fields (PersonID and LastFirst). As each
record is displayed I want the value in the ComboBox to
change based on the value in the TextBox. The following
code appears to be getting the value because the
Debug.Print returns the correct value. But the displayed
value in the ComboBox does not change. How do I get the
ComboBox to display properly? Thanks for your help.
Private Sub Form_Current()
Me!LastFirst = DLookup("[LastFirst]",_
"[qryPe_Calculated]", "[PersonID] = "_
& Me!PersonID)
Debug.Print Me!LastFirst
End Sub
(PersonID) on a form. I have a query (qryPe_Calculated)
that has 2 fields (PersonID and LastFirst). As each
record is displayed I want the value in the ComboBox to
change based on the value in the TextBox. The following
code appears to be getting the value because the
Debug.Print returns the correct value. But the displayed
value in the ComboBox does not change. How do I get the
ComboBox to display properly? Thanks for your help.
Private Sub Form_Current()
Me!LastFirst = DLookup("[LastFirst]",_
"[qryPe_Calculated]", "[PersonID] = "_
& Me!PersonID)
Debug.Print Me!LastFirst
End Sub