Results 1 to 7 of 7
  1. #1
    ManuelLavesa is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    113

    How to get the data from a query into a form


    Hello all, my problem is as follows. I have a PurchaseOrder table and a PurchaseOrderDetails table. I made a form to enter the purchase orders. and works correctly. I also have a query that finds the products that need to be ordered from an specific supplier. What I would like to accomplish is to get the result from the query and enter it into the form so that the data gets written into the respective tables, and the Purchase order is generated automatically. Is this possible? and if so, how is it done. Thank you for your help

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Can you how us a screen capture (jpg) of your relationships window?
    To get data into your tables, you use bound Forms--that is use Forms that are bound to your Tables.

  3. #3
    ManuelLavesa is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    113
    Thank you for your reply. I already made a bound form, and I can enter data manually, the data is written into the tables perfectly. The problem is that I would like to get the data from the query result into the bound form and I don't know how to accomplish it.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Tell us about the query --more details and example would help.

    And the relationship jpg?

  5. #5
    ddoumani is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    3
    Orange; I have the same question posted in another thread/area and it probably should have been in this subforum. Short is that I want to put a specific data label, which I can get in a query, in a form as an identifier. Sounds like the same solution for the OP and myself would be applicable. Any ideas if you reference this post I made with a bit more details?

    https://www.accessforums.net/showthr...941#post317941

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    ddoumani,

    I do not understand your requirement enough to offer more advice.
    I did respond to your other post --seeking more info.

    In order to offer a focused response, readers have to understand your situation. Some may guess, and guess correctly with little or no info. I don't think guessing is a good strategy. In my view, if a poster can not describe the "problem/opportunity" sufficiently well so that a reader can understand the context and the main requirements, then the poster probably does not fully understand the issue or has not analyzed the situation in detail.

    Good luck wth your project.

  7. #7
    ManuelLavesa is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2015
    Posts
    113
    I am sorry it took me a while to return to programing. The query is a select query that finds which products need to be ordered for a specific supplier. It also calculates the quantity needed to order. But once the query runs is not updatable. So when I make a form based on this query I can not change the values of the fields. So ideally what I want is to make an updatable query... Or maybe if I describe what I need there might be another way. What I need is :
    1) findout which products for a specific supplier are needed to reorder
    2) Generate a Purchase order for all the products in an editable form.
    3) edit the quantities and products as needed and print the purchase order.
    What do I do currently.
    I have the query that gives me what I need to order thus solving 1)
    I have a form bound to the Order detail table and I enter the information from the query manually so that it is editable. Then I generate a report and print the PO
    So my dream is to make this data entry automatic and editable just in case I want to change the products or quantities ordered is there a way to accomplish this? Thank you for your help and time

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

Similar Threads

  1. Replies: 7
    Last Post: 03-29-2016, 09:11 AM
  2. Query with data from form
    By gmaster in forum Queries
    Replies: 3
    Last Post: 07-04-2014, 09:26 AM
  3. Replies: 10
    Last Post: 02-12-2014, 08:26 PM
  4. Replies: 9
    Last Post: 09-20-2011, 07:47 PM
  5. Use form data in a query
    By Zholt in forum Forms
    Replies: 2
    Last Post: 05-13-2009, 07:59 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