Results 1 to 4 of 4
  1. #1
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24

    Opens forms AND Reports from same list box?

    Hi,

    is it possible to open FORMS AND REPORTS from the same list box?

    i know I can open forms by bounding the column, but can I open both forms and reports?

    thanks!



  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Why do you need to open form and report? What do you mean by 'open forms by bounding the column'?

    Certainly doable. How are you populating the listbox RowSource? Use VBA code to open whatever you want based on listbox selection.

    Select Case Me.listbox
    Case "this value1"
    DoCmd.OpenForm "form name"
    DoCmd.OpenReport "report name"
    Case "this value2"
    ...
    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
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24
    My Weekly reports are infact Pivot charts made on a form! and my quarterly reports are normal reports that is why!!

    "this value 1" - would this be the actual report/form name?

  4. #4
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24

    Thumbs up

    Quote Originally Posted by June7 View Post
    Why do you need to open form and report? What do you mean by 'open forms by bounding the column'?

    Certainly doable. How are you populating the listbox RowSource? Use VBA code to open whatever you want based on listbox selection.

    Select Case Me.listbox
    Case "this value1"
    DoCmd.OpenForm "form name"
    DoCmd.OpenReport "report name"
    Case "this value2"
    ...

    GENIUS it works!! thanks for helping out again June 7.

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

Similar Threads

  1. Reports in a list.
    By cap.zadi in forum Reports
    Replies: 11
    Last Post: 09-21-2011, 10:09 AM
  2. Forms and reports
    By g2rules in forum Access
    Replies: 0
    Last Post: 03-08-2011, 09:09 AM
  3. Printing reports off a list box
    By kbandong1 in forum Reports
    Replies: 3
    Last Post: 03-05-2011, 09:51 PM
  4. Forms and Reports
    By nacho in forum Forms
    Replies: 3
    Last Post: 04-17-2010, 01:06 AM
  5. list available reports on form
    By farls in forum Forms
    Replies: 3
    Last Post: 10-09-2009, 07:24 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