Results 1 to 5 of 5
  1. #1
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185

    Question Report not opening to view

    I built a DB in AC2010, everything works fine. Except, when I try to use AC2003. When I try to open the reoprts in AC2003 it wants to just print them. Cant open them to just view. Here is the code I have on the button that is supposed to open the report....

    Code:
    Private Sub OpensNightsWorkQueryReport_Click()
    On Error GoTo Err_OpensNightsWorkQueryReport_Click
     
       Dim stDocName As String
     
       stDocName = "NightsWorkQueryReport"
       DoCmd.OpenReport stDocName, acViewReport
     
    Exit_OpensNightsWorkQueryReport_Click:
       Exit Sub
     
    Err_OpensNightsWorkQueryReport_Click:
       MsgBox Err.Description
       Resume Exit_OpensNightsWorkQueryReport_Click
     
    End Sub
    Help please!!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    change:
    Code:
    acviewreport
    to:
    Code:
    acviewpreview
    regardless of the version you're running the db in, and you'll be fine.

  3. #3
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185
    That works great, only I have a button in the report header set to print the report. Now I cant use that button. Is there some way to open the report and still use the button to print?

    W/O allowing any toolbars.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Ideally, there should never be a button on a report. IMO, you should option it at the level before report opening.

    I don't believe they're clickable in preview. maybe open it in layout with everything turned off? how about Ctrl+P?

  5. #5
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185
    CTRL P works! Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. View SQL or VBA for Report?
    By Kimbertha in forum Reports
    Replies: 3
    Last Post: 10-21-2010, 08:56 PM
  2. Report does not reflect database view
    By ErinHayes in forum Reports
    Replies: 5
    Last Post: 09-27-2010, 07:32 PM
  3. report opening problem
    By combine21 in forum Reports
    Replies: 1
    Last Post: 09-27-2010, 02:15 PM
  4. Opening a report
    By mwabbe in forum Access
    Replies: 3
    Last Post: 09-17-2010, 09:19 AM
  5. System lag when in report design view
    By vCallNSPF in forum Access
    Replies: 5
    Last Post: 12-10-2009, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums