T
Thomas Pagel
Hi,
I have a form basically for entering orders. So we have a combobox for the
customer, a field for the order date, ... and a subform with the order
details. In that subform we can choose a product number by a combobox and
can enter an amount.
Behind the scenes we have an order table, a table for the order details and
the products.
The problem is, that I want to have a field for the product name just beside
the product number. It should be a seperate field to have a nice formatting.
I tried to change the datesource of the subform to a query linking the
products with the order details. It works sometimes but if I change the
product number, the product name is not refreshed. If I do a requery, the
first record is selected after that, so it jumps away from the record I was
just editing.
A different way was to use an unbound field and search the product name
(i.e. by dlookup()) after changing the product number. That works, but it
always changes all product names (all the records) to the product I just
entered, so
regardless of all the different products you entered for one order, they all
get the same name.
I hope my problem got clear... What can I do?
Thanks,
Thomas
I have a form basically for entering orders. So we have a combobox for the
customer, a field for the order date, ... and a subform with the order
details. In that subform we can choose a product number by a combobox and
can enter an amount.
Behind the scenes we have an order table, a table for the order details and
the products.
The problem is, that I want to have a field for the product name just beside
the product number. It should be a seperate field to have a nice formatting.
I tried to change the datesource of the subform to a query linking the
products with the order details. It works sometimes but if I change the
product number, the product name is not refreshed. If I do a requery, the
first record is selected after that, so it jumps away from the record I was
just editing.
A different way was to use an unbound field and search the product name
(i.e. by dlookup()) after changing the product number. That works, but it
always changes all product names (all the records) to the product I just
entered, so
regardless of all the different products you entered for one order, they all
get the same name.
I hope my problem got clear... What can I do?
Thanks,
Thomas