>Thanks for your quick response John
>
>The structure of the "Names" table is:
>
>ID (Autonumber) - Primary Key
>Names (eg: Smith, John)
I'd REALLY recommend using two fields, FirstName and LastName. It's
much easier to concatenate the values like
[LastName] & ", " & [FirstName]
or
[FirstName] & " " & [LastName]
than it is to pick them apart; and you can Index both fields so you
can quickly search or sort by either first or last name, or both.
>The structure of the "Crews" table is:
>
>ID (Autonumber) - Primary Key
>Crews (eg: A Crew, B Crew, etc)
If the [Crews] field is unique within the table, you may not need the
autonumber. A Primary Key needs to be unique, stable, and short; I'd
say that the text string "Crew A" qualifies. This might simply be a
one-field table.
>The structure of the "Input" table is:
>
>ID (Autonumber) - Primary Key
>Date (eg: 12-Aug-06)
>Time (eg: 14:56)
Don't use the reserved words Date or Time for fieldnames: Access
*will* get confused! And you may want to use just a single Date/Time
field. Access stores date/times as numbers, a count of days and
fractions of a day (times) since midnight, December 30, 1899. If
you'll be searching for ranges, it can be much simpler if you just
have one field rather than having to combine two.
>Coil Number (eg: A12345)
>Damaged? (eg: Yes/No box)
>Comments (Memo box)
>Operators Comments (Memeo box)
Does the information in the input table relate to an employee, or to a
crew, in any way? Or are these three independent unrelated tables? I'm
guessing that an Employee is a member of a Crew (or perhaps more than
one crew? I don't know your business structure!); and that an Input
record should indicate either which employee, or which crew, or both,
was involved with this coil.
If so, you need to include a Long Integer (to link to an autonumber,
which is a specially-handled Long) EmployeeID and/or CrewID field, or
if you use my suggestion of a text Crew primary key, just a Crew text
field.
If you do so, use the Relationships window to define a one to many
relationship from Employees to Input, and another from Crews to Input.
This will ensure that you can't enter a nonexistant employee or crew
to the Input table.
>What I hope to end up with is a form that caters for:
>
>Name (combo box)
>Crew (combo box)
These would need to be bound to the Employeeid and Crew (or CrewID)
fields that I'm suggesting that you should add to your table.
>Date
>Time
This could just be one textbox.
>Coil Number
Will this be a new entry for every record? Or do you have a predefined
table of coils?
>Damaged? (Yes/No tick box)
>Comments (memo box)
[quoted text clipped - 3 lines]
>
>John
Should be really straightforward then. You may also want two little
forms to add new Employees and new Crews to their respective tables.
John W. Vinson[MVP]
John Calder - 23 Jun 2006 04:00 GMT
Thanks John, got some valuable info from your answer but I have a long way to
go. I am really struggling to understand relationships so I have posted
another question re this.
> >Thanks for your quick response John
> >
[quoted text clipped - 90 lines]
>
> John W. Vinson[MVP]