From one form to another

mjdemaris

Working on it...
Local time
Today, 07:21
Joined
Jul 9, 2015
Messages
426
Hi all!
I would like to copy data from one form to a subform on a separate form.

The user wants to place an order, so he clicks a button that opens a form with datasheet to search for something. A checkbox is on the record of each item, so he can select multiple items. Then, click button to view selected items, then "copy" most of the record's data to another form.

The data is "copied" from one set of tables to a new record on another table. The tables being searched on comprise an order history table, compiled from years of previous orders. (Items---VendorItemJoin---Vendors) The join table provides multiple part numbers and multiple vendors.

The tables that store the more current data are Orders and Orders Details. I can’t put the older data into the new tables, because there is no Order Number associated with the old data. (OrderID ---- OrderIDFK)

I have been able to copy the data into the table of the subform I wish to populate (using recordsets), but it does not appear in the subform until it is re-opened. Which makes sense. (I can also get the new OrderID from the Orders form after it opens, and use that ID in the Details table as I copy this data over.)

So, when the main form opens, a new record is being created in the Orders table and at least one new record in the Details table. New data can be entered directly into the Details subform, but I would like to allow the user to add data from the “outsider tables” as well.

Thanks,
Mike
 

Attachments

  • FormToForm10-5-16.PNG
    FormToForm10-5-16.PNG
    14.6 KB · Views: 60
Use a query. The subForm is based on a query,on a key.
Make an appnd query,Bring in this Exact form query,use the key,
Then add the data to wherever you need.
 
Are you saying to use an append query to append data to the open subform's query?
 

Users who are viewing this thread

Back
Top Bottom