transfering from combo to textbox on new form

Ecal

Registered User.
Local time
Today, 17:43
Joined
Nov 3, 2012
Messages
21
Consider:

Forms!frmOrderParts.txtTypAC = Me.cboTypeAirCraft

This code gives me a 1 (which is not seen) from my field Catigory ID on the new form is there a way I can pull from whatever is selected in the combo box to put into a text box on the new form?
 
Seems like the Combo Box's Bound Column is 1 however the Column Count is 2.. Check the property sheet, If that is correct.. Try the following..
Code:
Forms!frmOrderParts.txtTypAC = Me.cboTypeAirCraft.Column(1)
 
Here is what I have:

Private Sub OptDocYes_Click()
If Me.OptDocYes Then
Me.OptDocNo.Enabled = False
DoCmd.OpenForm "frmOrderParts"
Forms!frmOrderParts.txtTypAC = Me.cboTypeAirCraft.Column(1)
Else
Me.OptDocNo.Enabled = True
DoCmd.Close acForm, "frmOrderParts"
End If
End Sub
Private Sub OptDocNo_Click()
If Me.OptDocNo Then
Me.OptDocYes.Enabled = False
Else
Me.OptDocYes.Enabled = True
End If
End Sub

But if I exit the second form and retry to click the option button yes or no then it will not do it a second time
 
Am sorry, but I do not understand what is that you are trying to do here.. If you wondering why the button is not enabled then it is because buttons are unbound in other words they are not absed on the Table content, if you wish to check them you have to use the Form_Current property..
 

Users who are viewing this thread

Back
Top Bottom