Hi there
I am wandering if anyone could help me out on this matter, i ahve 2 tables at the moment, a departments table with the field depart no and name and a products table with prod no, name, price, department name, now say i have 10 departments then i would want to create 10 command buttons on a form and on the form load i would want the button captions of the 10 buttons to be loaded with the departments name. At the moment they all the buttons are coded manually but would like to change this as departments can change and so can products and the reason why i need it to be command buttons insteda of a combo box or listbox etc is that its going to be used on a touch screen pc and also there will be many departments etc.
i know you can do this in vb by using a array of buttons but access doesnt allow that, only thing is that i have seen this been done tho in access before.
Any help would be much appreciated on this matter or if anyone has a better idea to go about this thanks
I am wandering if anyone could help me out on this matter, i ahve 2 tables at the moment, a departments table with the field depart no and name and a products table with prod no, name, price, department name, now say i have 10 departments then i would want to create 10 command buttons on a form and on the form load i would want the button captions of the 10 buttons to be loaded with the departments name. At the moment they all the buttons are coded manually but would like to change this as departments can change and so can products and the reason why i need it to be command buttons insteda of a combo box or listbox etc is that its going to be used on a touch screen pc and also there will be many departments etc.
i know you can do this in vb by using a array of buttons but access doesnt allow that, only thing is that i have seen this been done tho in access before.
Any help would be much appreciated on this matter or if anyone has a better idea to go about this thanks