ppoindexter
Registered User.
- Local time
- Yesterday, 22:55
- Joined
- Dec 28, 2000
- Messages
- 134
I have an unbound text box that i want to pull data into by selecting a record in a combo (the combo has the following code),
Private Sub Combo_tplan_GotFocus()
If IsNull(Me.Combo_standard) = True Then
Me.Combo_tplan.RowSource = "select fldtplanid,fldtplan_brief_description from tblmimtplan where fldmim_core_id= " & Me.Combo_Component & " And fldlevel2id = " & Me.Combo_Grade & " order by fldtplan_brief_description"
Else
Me.Combo_tplan.RowSource = "select fldtplanid,fldtplan_brief_description from tblmimtplan where fldmim_core_id= " & Me.Combo_Component & " and fldlevel1id= " & Me.Combo_standard & " And fldlevel2id = " & Me.Combo_Grade & " order by fldtplan_brief_description"
End If
End Sub
i tried using the pull method for an unbound text box
=Combo_tplan.Column(2)
but the code that populates the combo prevents the pull code from working...(at least i am assuming this as i usually have no problem with this method)
i have tried at length to use the following
Me![Text_Label] = Me![Combo_tplan].Column(2)
within the "got focus" code from the combo but have had no luck
any help would be appreciated
Private Sub Combo_tplan_GotFocus()
If IsNull(Me.Combo_standard) = True Then
Me.Combo_tplan.RowSource = "select fldtplanid,fldtplan_brief_description from tblmimtplan where fldmim_core_id= " & Me.Combo_Component & " And fldlevel2id = " & Me.Combo_Grade & " order by fldtplan_brief_description"
Else
Me.Combo_tplan.RowSource = "select fldtplanid,fldtplan_brief_description from tblmimtplan where fldmim_core_id= " & Me.Combo_Component & " and fldlevel1id= " & Me.Combo_standard & " And fldlevel2id = " & Me.Combo_Grade & " order by fldtplan_brief_description"
End If
End Sub
i tried using the pull method for an unbound text box
=Combo_tplan.Column(2)
but the code that populates the combo prevents the pull code from working...(at least i am assuming this as i usually have no problem with this method)
i have tried at length to use the following
Me![Text_Label] = Me![Combo_tplan].Column(2)
within the "got focus" code from the combo but have had no luck
any help would be appreciated