I am sending it to a table for keeping records of the form I got the door number section to save to the form by putting the field in the control source on the form but the others have values in their control source, can you have two? I tried using child/form or table but I am not completly sure how that works If you explained it maybe I could figure out how to get this thing to work
thanks
guy
ok, that made nothing any clearer. LOL.
the idea is, if you have a main table with a PK, with a relationship to another table where there is a FK, you can make that FK table as a subform on your PK form.
e.g.,
tblEmployee
---------
EmployeeID (PK, Autonumber)
EmployeeName (text)
.
.
.
tblEmployeeJobs
---------
JobID (PK, Autonumber)
EmployeeID (Number) = FK
JobDescription (text)
.
.
.
.
so you have what i call a 'sub' table, and any table that is a 'sub' table can be implemented as a 'sub' form on a main form.
i.e., your main form would be based on your employee table. you then create another form based on the jobs table, and place it into your main form via the subform control (it's added same way as you would, for example, a combo box).
the forms are then linked by a common field (EmployeeID) and when you choose an employee in your main form (say, from a Combobox, like what you described), it automatically filters the subform to display that employee's jobs - as well as automatically filling in the correct employeeID in the subform (and therefore table) when you add a new record in the subform.
here's a couple of threads for you to check out (all have sample files for you to look at - and all were found using the search feature on the sample databases forum here at access world forums) in addition, now that i've given you the name of this feature ("subform") you can and should search the 'forms' forum for HOW TO actually do this (in case my above description was not enough):
this one has a simple example of a one-to-many subform
http://www.access-programmers.co.uk/forums/showpost.php?p=511947&postcount=11
this one also deals with subforms referencing other subforms (from what i can gather in the description)
http://www.access-programmers.co.uk/forums/showthread.php?t=103988&highlight=subform
this one deals not only with subforms, but with subforms where there is a many-to-many configuration with tables. M-M is dealt with when you have, for example, a table for movies, a table for actors, and then a table for which actors appeared in which movies (because one actor can be in many movies, but also one movie has many actors):
http://www.access-programmers.co.uk/forums/showthread.php?t=153458&highlight=subform
this one tells you how you can have your subforms have alternate row colours - i presume it's dealing with continuous forms, but i can't say for sure b/c i have not looked at the sample db itself, only searched the forum. this is a cosmetic thing, but many people ask how to do it.
http://www.access-programmers.co.uk/forums/showthread.php?t=101099&highlight=subform