Results 1 to 6 of 6
  1. #1
    drobizzle is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    5

    Report button in Form


    First time poster. I made a button via macro in a Form to link me to a Report (I have three different versions for three different languages) I want to be able to choose the language of the report it opens with a popup box. Can it be done or can it be done only with a box where I would write the Report name? Thanks in advance. P.S. Will I have to make three different buttons?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,603
    By 'popup' do you mean the intrinsic InputBox or a custom popup which is really just a form? The first is easy to create and pass value to the calling form but harder to control validation.

    Why not just a combo or list box on the form that offers the three choices? This control can be referenced in code to open the report.

    Could even automate the language selection if you associate a language with client.
    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. #3
    drobizzle is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    5
    I never thought of a form. So I made a new form put the three buttons that show reports in different languages and an exit button. I made it as a pop-up: Form properties/Property sheet/other/pop up - yes. The thing is how do I center the pop up box in the middle of the screen. It goes randomly from the top left corner to sort of somewhere in the middle but not quite.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,603
    Try setting the form AutoCenter property to Yes. So where is code to open the report - behind each of the language buttons?
    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.

  5. #5
    drobizzle is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    5
    It is set to yes still no luck.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,603
    Not sure if this is a fix, I never set the Popup property to yes. I have set Modal to yes. Only do that when finished coding, Modal interferes with debugging.
    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.

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

Similar Threads

  1. How to make a button on a form update report
    By Enemee in forum Programming
    Replies: 1
    Last Post: 07-05-2011, 11:24 AM
  2. Replies: 7
    Last Post: 01-12-2011, 01:41 PM
  3. Replies: 3
    Last Post: 01-14-2010, 08:32 AM
  4. Form/report command button code
    By max3 in forum Forms
    Replies: 1
    Last Post: 08-26-2009, 02:18 AM
  5. Replies: 1
    Last Post: 04-06-2009, 12:05 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