antonyx
Arsenal Supporter
- Local time
- Today, 04:13
- Joined
- Jan 7, 2005
- Messages
- 556
i know i should know this..
i know how to use link criteria when transfering a key field from one form to the next..
but i am unsure as to how to transfer an unbound value..
on my form frmInvoice i have a button called btnAddInvoice
it opens the form frmNewInvoice
using this at the moment
on the form frmNewInvoice i have a drop down called cboAccountRef..
i want this drop down to be pre filled with the value from the cboAccount drop down on frmInvoice
what is the simplest way to do this?
i know how to use link criteria when transfering a key field from one form to the next..
but i am unsure as to how to transfer an unbound value..
on my form frmInvoice i have a button called btnAddInvoice
it opens the form frmNewInvoice
using this at the moment
Code:
Private Sub btnAddInvoice_Click()
On Error GoTo Err_btnAddInvoice_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmNewInvoice"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_btnAddInvoice_Click:
Exit Sub
Err_btnAddInvoice_Click:
MsgBox Err.Description
Resume Exit_btnAddInvoice_Click
End Sub
on the form frmNewInvoice i have a drop down called cboAccountRef..
i want this drop down to be pre filled with the value from the cboAccount drop down on frmInvoice
what is the simplest way to do this?