BenSteckler
Addicted to Programming
- Local time
- Today, 14:20
- Joined
- Oct 4, 2000
- Messages
- 44
I am trying to output an Access Report to a snapshot viewer. The problem I am having is that when I call the OutputTo command, it does not allow me to change the filter. It just opens the whole report. Can anyone look at the following code and tell me what I am doing wrong?
Code is written in VB6.
Thanks for the help,
BDS
Code is written in VB6.
Code:
Dim appAccess As Access.Application, LimitsAre As String
Set appAccess = New Access.Application
appAccess.OpenCurrentDatabase ("i:\[I]NameOfFile.mdb[/I]")
LimitsAre = "([SignInId] = '" & frmSignIn.txtActiveXId & "')"
appAccess.DoCmd.OpenReport "Issue Log Report - Analyst" _
, , , LimitsAre
appAccess.DoCmd.OutputTo acOutputReport, _
"Issue Log Report - Analyst", acFormatSNP, _
"i:\[I]NameOfSnapFile.snp[/I]", True
appAccess.CloseCurrentDatabase
appAccess.Quit
Set appAccess = Nothing
MsgBox "Your Issue Log has been printed.", , "Printed Complete."
Thanks for the help,
BDS
Last edited: