honey2wood
Registered User.
- Local time
- Today, 01:00
- Joined
- Feb 16, 2010
- Messages
- 43
Hi Everyone,
I hope someone can help I seem to be going round in circles at the moment.
I am taking a value from one form into another. The value I am taking needs to select an item In a combo Box.
So far I can move the value to the new form but cant seem to copy the value into the combo box.
Private Sub Use_By_Date_Click()
Dim Partno As String
Partno = Me.Form.TRAN_ItemNo
TRAN_ItemNo = Partno
'MsgBox Partno
DoCmd.OpenForm "Frm_Stock_Transactions"
DoCmd.GoToRecord , , acNewRec
End Sub
This works but then I have tried
me.Component Value = Partno
me."Frm_Stock_Transactions"."Component Value" = Partno
Form."Frm_Stock_Transactions"."Component Value" = Partno
and various combinations of the above but cant seem to get it right.
Is this the right way to do it or is there an easier way.
Thanks in anticipation
Graham
I hope someone can help I seem to be going round in circles at the moment.
I am taking a value from one form into another. The value I am taking needs to select an item In a combo Box.
So far I can move the value to the new form but cant seem to copy the value into the combo box.
Private Sub Use_By_Date_Click()
Dim Partno As String
Partno = Me.Form.TRAN_ItemNo
TRAN_ItemNo = Partno
'MsgBox Partno
DoCmd.OpenForm "Frm_Stock_Transactions"
DoCmd.GoToRecord , , acNewRec
End Sub
This works but then I have tried
me.Component Value = Partno
me."Frm_Stock_Transactions"."Component Value" = Partno
Form."Frm_Stock_Transactions"."Component Value" = Partno
and various combinations of the above but cant seem to get it right.
Is this the right way to do it or is there an easier way.
Thanks in anticipation
Graham