From: .:RoKsTaR:. on
How do I get Access to allow me to have to fields with the same name? One of
my junction tables relates 2 things from the same table and I need to have
the fields labeled the same.

Cheers!
From: Allen Browne on
You cannot have 2 fields with the same name in the same table.
The fields don't need the same name for you to create relations to other
tables.

For example, say you have an Employee table, and a junction table to record
who reports to whom when. The junction table would have fields:
- EmployeeID relates to Employee.EmployeeID
- SupervisorID relates to Employee.EmployeeID
- StartDate when this employee starts to report to this supervisor.

The idea is that, even though EmployeeID and SupervisorID both relate to the
same field of the Employee table, they have different names in this junction
table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


".:RoKsTaR:." <RoKsTaR(a)discussions.microsoft.com> wrote in message
news:9B89DF08-D99C-4EBB-A1BF-169A2B51E011(a)microsoft.com...
> How do I get Access to allow me to have to fields with the same name? One
> of
> my junction tables relates 2 things from the same table and I need to have
> the fields labeled the same.
>
> Cheers!

From: .:RoKsTaR:. on
Thanks Allen :)

So how would I work in my case? I need to establish a relationship between
two or more people in my people table.

My people table is simple:

People - ID, Firstname, Lastname

I'm relating the 2 or more in this table:

Guardian - ID, Peopleid, peopleid, relationship, isprimary

Cheers!
From: Gina Whipp on
That table is set up like an Excel spreadsheet, so in your case that would
not work... Your table should be set up like this...

Guardian - ID
Peopleid
relationship
isprimary

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

".:RoKsTaR:." <RoKsTaR(a)discussions.microsoft.com> wrote in message
news:959D040E-B8BE-4AEA-BC48-A78505F5A1D4(a)microsoft.com...
Thanks Allen :)

So how would I work in my case? I need to establish a relationship between
two or more people in my people table.

My people table is simple:

People - ID, Firstname, Lastname

I'm relating the 2 or more in this table:

Guardian - ID, Peopleid, peopleid, relationship, isprimary

Cheers!

From: .:RoKsTaR:. on
How does that relate 2 people though?

"Gina Whipp" wrote:

> That table is set up like an Excel spreadsheet, so in your case that would
> not work... Your table should be set up like this...
>
> Guardian - ID
> Peopleid
> relationship
> isprimary
>
> --
> Gina Whipp
> 2010 Microsoft MVP (Access)
>
> "I feel I have been denied critical, need to know, information!" - Tremors
> II
>
> http://www.regina-whipp.com/index_files/TipList.htm
>
> ".:RoKsTaR:." <RoKsTaR(a)discussions.microsoft.com> wrote in message
> news:959D040E-B8BE-4AEA-BC48-A78505F5A1D4(a)microsoft.com...
> Thanks Allen :)
>
> So how would I work in my case? I need to establish a relationship between
> two or more people in my people table.
>
> My people table is simple:
>
> People - ID, Firstname, Lastname
>
> I'm relating the 2 or more in this table:
>
> Guardian - ID, Peopleid, peopleid, relationship, isprimary
>
> Cheers!
>