From: Needing Help Needing on
I'm creating a database for a project at work and I'm a little rusty with
Access 2003 so any help would be greatly appreciated. I've started with a
table that I have imported from Excel that contains the employee's clock
number, their name and their supervisor in respective columns. I would like
to create a form that has three boxes. The first is a box that allows the
user to key in (or possibly select) an employee clock number. Once this is
completed I would like for the employee's name and supervisor to
automatically appear underneath the first box. I'm pretty for sure that doing
this has something to do with primary and foreign keys but not 100% sure on
that. After searching through my Access 2003 book and the internet I'm at a
loss. Does anyone have any advice that could help me out? Thanks so much in
advance!
From: BruceM via AccessMonster.com on
You have sescribed just one table. With a single table there will be no
foreign key. However, there should be at least two tables, and probably more,
depending on what you want to do after selecting the clock number. Do you
meant to enter some sort of information about hours worked or some such thing?


There almost certainly should be an Employee table. Supervisors are
employees (I expect), so they should be listed in the Employee table. All
employees need a unique identifying number (clock number?), FirstName,
LastName, Supervisor, and a Yes/No field to indicate whether a supervisor at
a minimum. You may need Department and other fields as well. The Supervisor
field should be the supervisor's employee number, not a name.

The details depends on the structure and purpose of the database.

I would suggest some reading about database design (Acces in particular)
would be of great benefit. Here are some links that should help. IMHO
Crystal's tutorial is as good a place as any to start.

Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html

The Access Web resources page:
http://www.mvps.org/access/resources/index.html

Roger Carlson's tutorials, samples and tips:
http://www.rogersaccesslibrary.com/

A free tutorial written by Crystal:
http://allenbrowne.com/casu-22.html

A video how-to series by Crystal:
http://www.YouTube.com/user/LearnAccessByCrystal

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials

Needing Help wrote:
>I'm creating a database for a project at work and I'm a little rusty with
>Access 2003 so any help would be greatly appreciated. I've started with a
>table that I have imported from Excel that contains the employee's clock
>number, their name and their supervisor in respective columns. I would like
>to create a form that has three boxes. The first is a box that allows the
>user to key in (or possibly select) an employee clock number. Once this is
>completed I would like for the employee's name and supervisor to
>automatically appear underneath the first box. I'm pretty for sure that doing
>this has something to do with primary and foreign keys but not 100% sure on
>that. After searching through my Access 2003 book and the internet I'm at a
>loss. Does anyone have any advice that could help me out? Thanks so much in
>advance!

--
Message posted via http://www.accessmonster.com