Results 1 to 2 of 2
  1. #1
    GuernseyGaz is offline Novice
    Windows XP Access 2000
    Join Date
    Jan 2012
    Location
    Guernsey CI
    Posts
    1

    Getting a form to do a Make Table Query that is not an object

    Hi all, My first post


    I have searched many many sites and still not solved.

    I am trying to create a very simple form that produces a report.

    On the form there are 2 dropdowns one for the Product Group and the other for the Margin. There is a listbox that shows the product codes related to the ProductGroup dropdown. The user must select a Product Group and a Margin he/she can also select none one or many from the listbox. This all works fine, now heres the problem, if the user presses the View button the code runs a query qryMultiSelect but this only shows the information from the Products Table tblProducts.
    I have tried to make the qryMultiSelect in to a Make Table Query tblResults but each time the form is used it reverts back to a normal select query.

    I need to Make a new table tblResults from the qryMultiSelect query, then create a new query based on the tblResults where I can add the criteria from the Margin Dropdown on the form. Then run a review report.

    If I can get the View button working the rest is easy

    Looking forward to some replies...

  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,954
    Why is there option to open query to view records?

    It is not necessary to OpenQuery before OpenReport.

    Why have the words 'Product Group' as part of the product group ID - unnecessary repetition?

    What would be criteria based on Margin?

    Make table should not be necessary. Should be able to structure filter criteria to accommodate all three search controls.
    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. Replies: 1
    Last Post: 09-03-2011, 07:01 PM
  2. Replies: 3
    Last Post: 01-10-2011, 10:31 AM
  3. Replies: 1
    Last Post: 07-30-2010, 10:28 AM
  4. make-table query
    By 3PS in forum Access
    Replies: 2
    Last Post: 06-28-2010, 12:54 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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