If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > .ASP Displaying MS Access Reports

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-07, 13:12
NEO_ASP NEO_ASP is offline
Registered User
 
Join Date: Jan 2007
Posts: 1
.ASP Displaying MS Access Reports

I'm running the below code to display a MS Access Rpt from a .ASP page. The code works on a server with IIS 5 and Windows 2000, but the code does not work on IIS 6 and Windows 2003. I would appreciate any help someone could give me. Thanks.


Set objAccess = Server.CreateObject("Access.Application")
objAccess.Visible = False


objAccess.OpenCurrentDatabase strDbName

With objAccess.DoCmd

.OpenReport strRptName, acViewPreview, strFilter, strWhere

.OutputTo acOutputReport, "rpt_individualphonelist", "Snapshot Format", strSnapFileAb
.Close
End With


objAccess.Quit acQuitSaveNone
Set objAccess = Nothing
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On