Hi,
I have a form (Employee) on this form I have a preview serp button. I want to preview the employee's current record. For example, John Stuart has three records I want to preview his most recent record.
This is the code I have for the preview serp button:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SIP/SESP Distribution"
stLinkCriteria = "[Employee Information]=" & "'" & Me![Employee Information] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly
I have a form (Employee) on this form I have a preview serp button. I want to preview the employee's current record. For example, John Stuart has three records I want to preview his most recent record.
This is the code I have for the preview serp button:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SIP/SESP Distribution"
stLinkCriteria = "[Employee Information]=" & "'" & Me![Employee Information] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly