Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 38
  1. #16
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Nope. Manually opening the report or opening it from a form does not make a difference. Mysteries...

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    You do know what's next if you want more help? Only thing left is to provide the db for analysis.
    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.

  3. #18
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727

    Attachment

    TESTPrintSetupButton.accdb

    Hope this works!

  4. #19
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Ok I attached the file. I created a brand new db and its doing it for both print buttons. After you click the print buttons and the print window opens up, click on setup and let me know what happens. Like I mentioned before, I don't think I EVER got this setup button to work. I used to just ignore it and think nothing of it but now I would like to see what is causing this problem.

  5. #20
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    Refer to my latest post. I replicated this on a brand new blank form. Nothing was changed. I went straight ahead and made the print buttons. Did not touch any other properties.

    If you did the same thing don't you also expect the same result!!!!!!!!!!!

    Did you try your report as an AcNormal in stead of AcDialog ?????????

    Refer to my post # 9 IS THE FORM SET TO MODAL?
    Without testing this I won't be offering any more help for you.

  6. #21
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Nothing was changed meaning I left the properties to default. Access defaults Pop Up to NO and Modal to NO. The original report came from a pop up and modal environment. The blank was not pop up and modal so I have tried both if thats what you meant?

    The report is sizable, not dialog. Is that the same thing you're talking about?

    To answer your question about the modal AGAIN, just for you, I tested it with Modal set to yes and modal set to no. There was no difference. I am beginning to think that something is wrong with my copy of Office 2007. In Post #18 I attached a sample database that also gives me the same error with the print setup button. Please try it out for me and if you are able to get access to the setup options, then this is just completely beyond me because it DOES NOT WORK FOR ME AND IF IT WORKS FOR YOU THEN I DO NOT KNOW WHAT IS GOING ON ANYMORE BECAUSE NO ONE, AND I MEAN NO ONE SEEMS TO HAVE THIS PROBLEM EXCEPT FOR ME AND THAT IS ONE BIG MYSTERY.
    Last edited by June7; 03-13-2014 at 11:28 AM.

  7. #22
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    O well, the only thing left is to post a copy in mdb format.

  8. #23
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727
    Did the accdb that I attached work for you on print setup?

  9. #24
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I have your db. I click the buttons and the Print dialog opens. The ribbon is not even available at this point. The code works. Ah Ha. It is the Setup button on the Print dialog that triggers this error. Got it!

    However, File > Print > Print does allow the Setup button to work. So now we have an answer. Initiating the Print dialog with code won't allow PageSetup from the Print dialog.
    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.

  10. #25
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727
    So what is the fix? Is it impossible to be able to use the print setup from dialogue window?

  11. #26
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    I think from a previous post you are trying to disable user access to various parts of your system, this could interfear with your problem.

    create a blank db, import all objects, remove all vba code, inc report button code.

    can you get to print options by clicking on the menu and selecting page setup from there?

    if so, now add your button on the form to do this with vba.

    If you can stiil get to the options, start adding one by one the lines of code that you use to limit user access to the system and menu

    if you can find what is causing the problem post back the result, if not post your db in mdb format.

  12. #27
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Can't use PageSetup if Print dialog is triggered by code.

    I tested

    DoCmd.RunCommand acCmdPageSetup

    That triggers the same error message.
    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.

  13. #28
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    You could investigate...

    DoCmd.DoMenuItem

  14. #29
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    If all else fails perhaps you could use vba to make your own print setup dialog form and use that? No idea if it would work.

  15. #30
    data808 is offline Noob
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    727
    I just did make a blank db and didn't do ANYTHING except make two buttons. One button made with with the control wizard to print. The other made with VBA. I used this command:

    DoCmd.RunCommand acCmdPrint

    For both of these buttons, I click it, then the print dialogue comes up. I click the setup button and then the error comes up. So I'm basically saying that it does not work in my current database with all the vba and macros going on AND it does not work when I start a freshly new database with the bare minimum of having just those print buttons. I swear, I am 99% sure that I have NEVER gotten this print setup to work in any of my databases. Like I mentioned before, I remember getting this problem a long time ago but never paid much attention to it till recently because I wanted to actually use it this time but by the looks of it, I guess its a glitch in Access that is not fixable. Either that or my copy of Access is defective. One or the other.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-10-2013, 11:21 AM
  2. Triggering a form event from a report
    By Paul H in forum Forms
    Replies: 2
    Last Post: 10-12-2012, 09:48 AM
  3. Carried over totals
    By Alex Motilal in forum Reports
    Replies: 0
    Last Post: 10-06-2010, 08:28 AM
  4. Carried over totals
    By Alex Motilal in forum Reports
    Replies: 3
    Last Post: 01-29-2010, 11:13 AM
  5. New Database - Batch processing
    By stevo2820 in forum Database Design
    Replies: 0
    Last Post: 04-30-2007, 02:22 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