I have an Access 2003 form named frm_oven, with a combo box named oven. The value list of the oven combo box is a set to a number from 1 thru 8. The data is in table tbl_oven I want to retrieve. The table column name are structured like this: oven_4_p1b, oven_4_p2b, oven_4_p3b and oven_4_p4b
I need to pass the selected number (1 thru 8) to an Access query named qry_oven as shown below. I have tried this query with no luck.
SELECT tbl_oven.Tiempo, tbl_oven.oven_[forms]![frm_oven]![oven]_p1b, tbl_oven.oven_[forms]![frm_oven]![oven]_p2b,
tbl_oven.oven_[forms]![frm_oven]![oven]_p3b, tbl_oven.oven_[forms]![frm_oven]![oven]_p41b, tbl_oven.Fecha,
tbl_oven.LDO, tbl_oven.LDC, tbl_oven.RDO, tbl_oven.RDC
FROM tbl_oven
ORDER BY tbl_oven.Fecha, tbl_oven.Tiempo;
I have been looking on how to correctly code this with no luck. I am thinking maybe I need to use a "tag" but have never done this and have no idea how it works. Any advice, examples, suggestions. Thank you all so much for your help.
I need to pass the selected number (1 thru 8) to an Access query named qry_oven as shown below. I have tried this query with no luck.
SELECT tbl_oven.Tiempo, tbl_oven.oven_[forms]![frm_oven]![oven]_p1b, tbl_oven.oven_[forms]![frm_oven]![oven]_p2b,
tbl_oven.oven_[forms]![frm_oven]![oven]_p3b, tbl_oven.oven_[forms]![frm_oven]![oven]_p41b, tbl_oven.Fecha,
tbl_oven.LDO, tbl_oven.LDC, tbl_oven.RDO, tbl_oven.RDC
FROM tbl_oven
ORDER BY tbl_oven.Fecha, tbl_oven.Tiempo;
I have been looking on how to correctly code this with no luck. I am thinking maybe I need to use a "tag" but have never done this and have no idea how it works. Any advice, examples, suggestions. Thank you all so much for your help.