Hello,
I have 7 queries with the same information but the fields have different names. ( Info comes from different systems and the names of the fields are different).
For instance,
In query1 I have a field called Prices
In query2 I have a field called UPrices
In query3 I have a field called DPrices
I would like to be able to create a form to see the 7 queries ( one at each time)
My form is called Test2 and one of the txtboxes is called Pricestxt. I have a command buttom in another form that opens Test2 in this way.
DoCmd.OpenForm "Test2"
Forms!Test2.RecordSource = "query2"
Forms!Test2!Pricetxt.ControlSource = [Query]![Query4]![Uprice]
End Sub
I would like to pass the field"Uprice" from query2 to Pricestxt. so I can see the info in the form. I could use the same solution to upload the other queries in the form so I just have one form for 7 queries.
At the moment I get an error in the above code.
Can someone help, please?
thanks in advance
J
I have 7 queries with the same information but the fields have different names. ( Info comes from different systems and the names of the fields are different).
For instance,
In query1 I have a field called Prices
In query2 I have a field called UPrices
In query3 I have a field called DPrices
I would like to be able to create a form to see the 7 queries ( one at each time)
My form is called Test2 and one of the txtboxes is called Pricestxt. I have a command buttom in another form that opens Test2 in this way.
DoCmd.OpenForm "Test2"
Forms!Test2.RecordSource = "query2"
Forms!Test2!Pricetxt.ControlSource = [Query]![Query4]![Uprice]
End Sub
I would like to pass the field"Uprice" from query2 to Pricestxt. so I can see the info in the form. I could use the same solution to upload the other queries in the form so I just have one form for 7 queries.
At the moment I get an error in the above code.
Can someone help, please?
thanks in advance
J