There are two easy methods.
The first would be to pass the ticket number to the form within the OpenForm command, via the openargs parameter, using code like the following link: http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
The second would be to store the desired value into a TempVars variable before executing the Openform command.
Code:
Private Sub PT_Number_Start_Multiple1_Click()
TempVars.Add ("TmpTicket", Me.MyTicketControl.Value)
DoCmd.OpenForm "Picker Start _ Multiple"
End Sub
In the Form_Open event, you would check the TempVars variable or the OpenArgs parameter and act accordingly. Here's the TempVars version, assuming the ticket number is alphanumeric.
Code:
Private Sub Form_Open(Cancel As Integer)
If Not IsNull([TempVars].Item("TmpTicket")) Then
Dim RS As DAO.Recordset
Set RS = Me.RecordsetClone
RS.FindFirst "[TicketFieldName] = '" & [TempVars].Item("TmpTicket") & "'"
If Not RS.NoMatch Then
Me.Bookmark = RS.Bookmark
End If
End If
End Sub
Items in red will need to be adjusted to your control and field names.
Here's a sample writeup of how to use TempVars. https://www.accessforums.net/code-re...ars-36353.html