I am trying to populate a textbox with a Price from a table based on selection in combo box but this only works with a combo box. can someone help me with this? Thanks in advance
This works:
Private Sub cboModel_AfterUpdate()
Me.cboPrice.RowSource = "SELECT fldPrice FROM tblCar WHERE fldModel = '" & Me.cboModel & "'"
End Sub
This don't: ( I get a #NAME? )
Private Sub cboModel_AfterUpdate()
Me.txtPrice.ControlSource = "SELECT fldPrice FROM tblCar WHERE fldModel = '" & Me.cboModel & "'"
End Sub
This works:
Private Sub cboModel_AfterUpdate()
Me.cboPrice.RowSource = "SELECT fldPrice FROM tblCar WHERE fldModel = '" & Me.cboModel & "'"
End Sub
This don't: ( I get a #NAME? )
Private Sub cboModel_AfterUpdate()
Me.txtPrice.ControlSource = "SELECT fldPrice FROM tblCar WHERE fldModel = '" & Me.cboModel & "'"
End Sub