Hello there,
I've been stuck on an access 2007 problem, which to me seems like a common thing to solve but I cannot
find any information on how to solve it.
This example shows what I mean. Take 2 tables;
orders_table
------------
order_id int primary key
customer_id int (foreign key of customer_table customer_id field)
order_ref text
customer_table
--------------
customer_id int primary key
company_name text
contact_person text
So I made an orders form like this to display and update the data;
---------------------------------
Order ID: [order_id]
Customer ID: [customer_id] {change_customer_button}
Customer Name: [customer_name]
Contact Person: [contact_person]
order Reference: [order_ref]
----------------------------------
I would like a button on the orders form like the one next to the Customer ID above which when pressed would open a modal search box, where you can search the customer_name field of the customer_table to drill down to the desired customer. It would show all the data about that customer. Once the desired customer is found, is there some way to close the modal box and return to the orders form (Via a 'Apply changes' to record type button?) which would now contain the NEW customer ID of the desired customer.
I'm sure this has been done before, ie a search on an a foreign id field, which then updates the record with the new foreign id.
Thanks in advance. :-)