Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    tonygg is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    115
    That's strange. Is it possible you could send me the code you used in the form to launch the report in preview mode? I have attached the screenshot of what you should see on the report and form with Batches 1 to 5 open. Thank you so much for taking the time to look.

    Tony
    Click image for larger version. 

Name:	Image of Report and Form Open.png 
Views:	9 
Size:	234.1 KB 
ID:	20990

  2. #17
    tonygg is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    115
    Hi. I have tried again and if I use my sub that already exists in the form to launch the report:

    Private Sub PrintOutRecSheet_Click()

    If Application.CurrentProject.AllReports("LUCY BARCLAY RECON REPORT").IsLoaded = True Then

    DoCmd.Close acReport, "LUCY BARCLAY RECON REPORT"
    Else
    DoCmd.OpenReport "LUCY BARCLAY RECON REPORT", acViewPreview
    End If

    End Sub

    I get the following error:
    Click image for larger version. 

Name:	Image of Report and Form Open Print Error.png 
Views:	9 
Size:	256.5 KB 
ID:	20991

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    What code is trying to set Column Count?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I moved all the code from the load event to the open event. I didn't use a button, I just opened the report from the nav pane, but it looked about like your picture.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    tonygg is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    115
    I moved the code to open and it works fine now. Sorry to have troubled you. Thank you so much. Tony

  6. #21
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help Tony. You're not my brother Tony, are you?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #22
    tonygg is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    115
    I guess not

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Passing A Date Range From Form To Report
    By JeffGeorge in forum Reports
    Replies: 3
    Last Post: 03-11-2014, 12:50 PM
  2. Passing data betwen forms listbox help
    By PoorBoy in forum Forms
    Replies: 1
    Last Post: 03-07-2013, 11:35 PM
  3. passing openArg to a listbox on other form
    By focosi in forum Access
    Replies: 7
    Last Post: 08-12-2011, 04:27 PM
  4. Replies: 5
    Last Post: 04-03-2011, 10:24 PM
  5. Replies: 1
    Last Post: 03-24-2010, 08:42 AM

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