I'm trying to pass the name in a ComboBox from one form to another via button click and I cannot seem to get it to work. I am not accustomed to working with MS Access, and I'm sure its a simple answer. Here's what I have so far:
Form A:
Private Sub Command104_Click()
On Error GoTo Err_Command104_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Vol_Hrs"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms.Vol_Hours.Search.Value = Me.Combo94.Column(0)
Exit_Command104_Click:
Exit Sub
Err_Command104_Click:
MsgBox Err.Description
Resume Exit_Command104_Click
End Sub
Form B:
Private Sub cmdAddNew_Click()
On Error GoTo Err_cmdAddNew_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Close
stDocName = "frmLookupScreen"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms.frmLookupScreen.Combo94.Value = Me.Search.Column(0)
Exit_cmdAddNew_Click:
Exit Sub
Err_cmdAddNew_Click:
MsgBox Err.Description
Resume Exit_cmdAddNew_Click
End Sub