C
Carolyn McNabb
Hello,
I am really frustrated. I've been researching how to do this in Access 2003
help, in this community and in the sample Northwinds Access project.
Here's the info:
I'm using MS Access 2003 on Windows XP.
I have set up a project accessing a database in the MSDE I have installed on
my laptop.
At this point I only have one table. I'm trying to figure out how to do the
following:
I am creating a database for my church for membership and for a caregiving
ministry I will be administering. I am stuck at trying to group members into
families...
From what I've researched I thought I'd have one table to accomplish this:
Table Name: Members
Columns:
MemberID (data type = uniqueidentifier)
FirstName
LastName
Address ... (etc.)
FamilyHead (This is what I was trying to use for the ForeignKey)
It doesn't make sense to have FamilyHead as a uniqueidentifer datatype, yet
when I join MemberID and FamilyHead it requires them to be the same data
type. Feeling I was at an impasse, this is when I started doing research,
without much luck.
Then in the Northwinds sample ADP, I saw that they didn't join the Employee
table to itself to make the hierarchy of ReportsTo. They simply used the
following query:
SELECT Employees.EmployeeID, LastName +', ' + FirstName AS ReportsTo FROM
Employees ORDER BY Employees.LastName, Employees.FirstName;
When I tried to do the same thing in my database, LastName +',' + FirstName
does not resolve. I only get the Last Name! :-( I've got to walk away
now...I've been working on this way too long without any progress...
Please Help!
Thank You In Advance,
Carolyn
I am really frustrated. I've been researching how to do this in Access 2003
help, in this community and in the sample Northwinds Access project.
Here's the info:
I'm using MS Access 2003 on Windows XP.
I have set up a project accessing a database in the MSDE I have installed on
my laptop.
At this point I only have one table. I'm trying to figure out how to do the
following:
I am creating a database for my church for membership and for a caregiving
ministry I will be administering. I am stuck at trying to group members into
families...
From what I've researched I thought I'd have one table to accomplish this:
Table Name: Members
Columns:
MemberID (data type = uniqueidentifier)
FirstName
LastName
Address ... (etc.)
FamilyHead (This is what I was trying to use for the ForeignKey)
It doesn't make sense to have FamilyHead as a uniqueidentifer datatype, yet
when I join MemberID and FamilyHead it requires them to be the same data
type. Feeling I was at an impasse, this is when I started doing research,
without much luck.
Then in the Northwinds sample ADP, I saw that they didn't join the Employee
table to itself to make the hierarchy of ReportsTo. They simply used the
following query:
SELECT Employees.EmployeeID, LastName +', ' + FirstName AS ReportsTo FROM
Employees ORDER BY Employees.LastName, Employees.FirstName;
When I tried to do the same thing in my database, LastName +',' + FirstName
does not resolve. I only get the Last Name! :-( I've got to walk away
now...I've been working on this way too long without any progress...
Please Help!
Thank You In Advance,
Carolyn