Hi.
this is my button code :
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Dim stDocName As String
stDocName = "rptPthAsas"
stLinkCriteria = "[StnName]=" & "'" & Me![StnName] & "'"
DoCmd.GoToRecord , , acNext
DoCmd.OpenReport stDocName, acPreview, ...