Hello.
I have created a button on Form A that opens Form B to a new record. I also need to put a value from FORM_A’s FIELD_22 into Form_B’s FIELD_99 for the new record and then refresh.
I have tried the following and various similar guesses…. Any help would be greatly appreciated. Thanks.
Private Sub Command13_Click()
On Error GoTo Err_Command13_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim meetingtype As String
meetingtype = Me.MeetingID
stDocName = “frm_meetings_actual”
DoCmd.OpenForm stDocName, , , , acFormAdd
[Planned_mtg_ID] = meetingtype
Exit_Command13_Click:
Exit Sub
Err_Command13_Click:
MsgBox Err.Description
Resume Exit_Command13_Click
End Sub