Hi so allow me to explain before you say that isn't possible because maybe a union query isn't what I need. Also thank you for your time.
I have 2 tables with similar data. Table1 is the one we use the most and table2 is all the etc/one off data entries that we still need access too.
Both tables have a similar structure to this image:
And on this new form I have a combobox that I want to drop down and have a list of all the heats from both tables.
So I thought to use a Union Query to merge them and it worked until I tried to click one. When I click one it is supposed to display all of the fields (eg C, Mn, P, S) in text boxes that have the control source set to that field so that the user can edit the values if needed.
I am sure you can see the problem now. Since I used a union query I can't set the control source anymore because it does not know what table to change the values on.
One thought that occurred to me would be to add a tag to each Heat that said which table it was from but I am not sure how I would write the control or if it would even work.
So I am wondering how I should accomplish this? I greatly appreciate any help. I can't actually merge the tables because one of them gets updated by an append query frequently and I am concerned it would accidentally overwrite some records.
Pseudocode on how I thought the tags could set the control:
if(tag = table1)
then Control = Table1.C
else if(tag = Table2)
then Control = Table2.C
else msgbox "error"