Originally Posted by
baseborn
Ok ive been trying to create a working form thats going to allow me to enter movies into my database. i only have 2 tables. Table:Movies is the table that needs to be populated by the use of this form. just 3 fields per record (ID,Title and Category). my 2nd table is Table:Categories and it actually holds the list of categories. just 2 fields per record (ID and Category Name). now as far as my form all i need to do is type in a name for the movie im entering into the db, select what category it fits in from the combo box and click "Add Record" and boom its entered into Table:Movies
This is how I would set up the form: (no spaces in names)
Code:
Table:Movies
-----------------------
MovieID (Autonumber) PK
Title Text
CategoryID_FK Long FK to table Categories
Table:Categories
-----------------------
CategoryID (Autonumber) PK
CategoryName Text
Combo box:
-----------------------
Name: cboCategory
Control Source: CategoryID_FK
Row Source Type: Table/Query
Row Source: SELECT CategoryID, CategoryName FROM Categories ORDER BY CategoryName;
Bound Column: 1
Column Count: 2
Column Widths: 0";1"
List Width: 1"
Limit to List: YES