C
CW
When our orders are booked, they may come from Agents or Corporates.
I have an Agents table and an Agent Data Form, and a Corporates table and a
Corporate Data Form.
On the main Orders page I have a combo called Booker and the data cource is
a Union query which combines all the records from the Agents and Corporates
tables, and the user can select whichever applies. All good so far.
Now, we want to be able to double-click on the record selected in the combo
and open the relevant Data Form, be it an Agent or a Corporate. (In order to
quickly gather a detail such a phone nbr or whatever else resides on the form)
I have no problem doing it for a single data source, but cannot work out how
to code it in this instance - how to tell Access to find the respective form,
because it could be either an Agent form or a Corporate form.
I have fiddled around with some If syntax but nothing even came close... can
somebody assist, please?
Many thanks
CW
I have an Agents table and an Agent Data Form, and a Corporates table and a
Corporate Data Form.
On the main Orders page I have a combo called Booker and the data cource is
a Union query which combines all the records from the Agents and Corporates
tables, and the user can select whichever applies. All good so far.
Now, we want to be able to double-click on the record selected in the combo
and open the relevant Data Form, be it an Agent or a Corporate. (In order to
quickly gather a detail such a phone nbr or whatever else resides on the form)
I have no problem doing it for a single data source, but cannot work out how
to code it in this instance - how to tell Access to find the respective form,
because it could be either an Agent form or a Corporate form.
I have fiddled around with some If syntax but nothing even came close... can
somebody assist, please?
Many thanks
CW