Groundbased
20th Oct 2014, 10:40
I'm trying to write a very simple access project with my son, but have run up against the following problem.
In Access 2010 I'm using a form to enter data into a table. If I drag the table column from "Existing fields" to the form I can then type in an entry which makes it into the table column and everything is hunky dory.
However, to practice good database design :-), I want to use a combo box with a set of defined values for the user to select from.
So here's the rub. I have set the control type to be combo box on the column on the table, and if i drag this onto the form I get a combo box appearing. Now, I can set the Row source type as Value List and type the values into the Row source. But when I do this they don't appear on the dropdown on the form. This seems to be because the field is bound to the table column. If I make it unbound they appear, but then the data doesn't make it through to the table.
Alternatively, again in the interests of good design, I have a table which just lists the values I want on the dropdown. If I add an unbound combo to the form I can get it, via the wizard, to use the values from the the table. However I can't then seem to get it to use the table column I want as the control source, and I think this is because I have not got a relationship between the two tables, or a foreign key on one of them, I'm not sure.
I'd be happy to get either method working, if anyone can help.
Thanks.
In Access 2010 I'm using a form to enter data into a table. If I drag the table column from "Existing fields" to the form I can then type in an entry which makes it into the table column and everything is hunky dory.
However, to practice good database design :-), I want to use a combo box with a set of defined values for the user to select from.
So here's the rub. I have set the control type to be combo box on the column on the table, and if i drag this onto the form I get a combo box appearing. Now, I can set the Row source type as Value List and type the values into the Row source. But when I do this they don't appear on the dropdown on the form. This seems to be because the field is bound to the table column. If I make it unbound they appear, but then the data doesn't make it through to the table.
Alternatively, again in the interests of good design, I have a table which just lists the values I want on the dropdown. If I add an unbound combo to the form I can get it, via the wizard, to use the values from the the table. However I can't then seem to get it to use the table column I want as the control source, and I think this is because I have not got a relationship between the two tables, or a foreign key on one of them, I'm not sure.
I'd be happy to get either method working, if anyone can help.
Thanks.