Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Field Names in Different Tables? 1

Status
Not open for further replies.

hope2bDev

Technical User
Jun 6, 2004
1
US
My first real effort at designing a db is underway. Is it ok to use duplicate field names in different tables or will I run into problems later? Like:

tblCustomer
FirstName
LastName

tblEmployee
FirstName
LastName

Should I use longer field names? Like:

tblCustomer
CustFirstName
CustLastName

tblEmployee
EmpFirstName
EmpLastName

TIA
Steve hope2bDev
 
It's not a problem. If you use similar names Access will pre-insert joins in QBE which may save you some time. On the other hand you are always going to have to qualify field names when you have joins, but - particularly if you use QBE to create your SQL - that's not much of a burden.

 
Hi,

For brevity and clarity:

CustName1
CustName2

EmpName1
EmpName2

What say?

C
 
I have terrific luck with never repeating a field name within an application. My employee table would be:
[tt][blue]
tblEmployees
empEmpID autonumber primarykey
empFirstName
empLastName
empDOB
[/blue][/tt]
Each field name begins with 3 characters that describe the table. The first field is always duplicate codes followed by ID and is an autonumber primary key.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top