Table Design

Q

QB

I have a table with 3 fields

EntryId (Primary Key - AutoNumber)
EmployeeNo
EntryYear

what do I need to do so that an EmployeeNo can have multiple entries, but
only one per year? Is this done in the design of the table or some other
method?

Thank you,

QB
 
Q

QB

Sorry for my ignorance, but how do I do this exactly. If it makes a
difference I am using Access 2003.

Thank you,

QB
 
F

Fred

No Problem

I'm no expert either but this works for me:

In table design view hit the indexes icon. In the ensuing dialog box:

On the first line make up an index name, (e.g. "EntryCheck") and choose
your first field (e.g. EmployeeNo)

On th second line, leave the index name blank, and choose your second filed
(e.g. EntryNo)

Click on the index name in the first column, and at the bottom of the
dialog box by "unique" choose "Yes"

Hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top