Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / May 2005

Tip: Looking for answers? Try searching our database.

Two table database input problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HapNM - 27 May 2005 16:28 GMT
I am creating a db to copy the information from a job application form. There
are two tables in this db. The first table contains a unique identifier that
is an auto generated number and will be assigned to the job application. The
second table has as its primary key the persons soc sec number. Table two
will contain the persons ssn, name, address, city, state, zip, and phone
number. The first table contains all of the applicants other information,
where went to school, work history, which position they are applying for,
etc. These two tables will not import any information from any other db that
the company has. IF the person is hired they will then be put into a
different db. The purpose of the db I am creating is to track the progress of
the person through the hiring process.

Here is the problem I am having. I am trying to find out if it is possible
to create a single form that will put the information into both tables rather
than having to enter information into two tables separately. I would like the
form to reflect the flow that exists on the job application to make keying in
data more easy for the end user. The relationship between the tables is one
to many.

When I created the form using the wizard it will only put information into
the table that is using the ssn as the primary key only. When I attempt to
type information into the fields from the other table nothing is entered at
all, the fields remain blank on the form. Any ideas as to what I am doing
wrong?

When I created a form using the wizard
HapNM - 27 May 2005 16:35 GMT
I failed to include that the persons ssn will be a foreign key in the first
table. The second table is linked to the first via the persons ssn.
tina - 27 May 2005 18:23 GMT
standard form setup to display a 1:n relationship between two tables, is a
mainform/subform. main form bound to parent table ("one" side), subform
bound to child table ("many" side). as long as you set the subform control's
LinkMasterFields and LinkChildFields properties to the name of the primary
key/foreign key fields, records in the subform will be automatically linked
to the parent form record at the time of data entry.

btw, suggest you reconsider using the SSN as primary key. unfortunately,
though each person's SSN *should be* unique, in reality there are a lot of
duplicate SSNs floating around out there (think identity theft).

hth

> I am creating a db to copy the information from a job application form. There
> are two tables in this db. The first table contains a unique identifier that
[quoted text clipped - 22 lines]
>
> When I created a form using the wizard
HapNM - 27 May 2005 18:29 GMT
I have since found out that I need to make one table a subform. This cleared
up my problems.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.