rio
Registered User.
- Local time
- Today, 10:12
- Joined
- Jun 3, 2008
- Messages
- 124
Hi.
this is my button code :
I make it auto click when open the form:
so...how to make this auto click continues until no more record (StnName)
this is my button code :
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, , stLinkCriteria
DoCmd.Close
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
DoCmd.Close , Form3
End Sub
I make it auto click when open the form:
Code:
Private Sub Form_Open(Cancel As Integer)
Command1_Click
End Sub
so...how to make this auto click continues until no more record (StnName)