By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,948 Members | 1,857 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,948 IT Pros & Developers. It's quick & easy.

Help! Why won't this just print ONE record by TransID?

P: n/a
In Access 97 the stWhere works great, but in A2000, it won't stop. It wants to
print ALL records, not just the current Transaction. HELP Please!

Private Sub cmdPrintTop_Click()
On Error GoTo Err_cmdPrintTop_Click

Dim stDocName As String
Dim stWhere As String

stDocName = "CheckPrintTop"
stWhere = "TransID=" & Me!TransID
DoCmd.OpenReport stDocName, acNormal, , stWhere

Exit_cmdPrintTop_Click:
Exit Sub

Err_cmdPrintTop_Click:
MsgBox Err.Description
Resume Exit_cmdPrintTop_Click

End Sub
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.