I have a command button below a combo box. When the right choice is chosen I'd like to be able to click the command button and open a form already populated with the values from the combo box on the other form.
Here is the code
Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Dim stDocName As String
stDocName = "feed"
DoCmd.RunMacro stDocName, acPreview
Form_frmOutboundSearch.Combo22.Value = Form_feed.FeedOutboundID
It's opening the other form, but not populating the fields with the value chosen in the combo box.