A
ArielZusya
I've been playing with more distributed data in a DB I'm setting up for a
friend. The Database has a number of tables with relationships to other
tables. Here's the basics:
tblMain:
ID_Main (autonumber, key)
Date (date/time)
Case (lookup to tblCase)
Supervisor (lookup to tblSupervisor)
User (lookup to tblUser)
what (lookup to tblWhat)
tblCase:
ID_Case (autonumber, key)
CaseName (text)
CaseIdentifier (text)
tblSupervisor:
ID_Supervisor (autonumber, key)
SupervisorName (text)
SupervisorNumber (Number)
tblUser:
ID_User (Autonumber, key)
UserName (text)
UserNumber (Number)
UserFor (lookup to tblFor)
tblWhat:
ID_What (Autonumber, key)
What (text)
tblFor:
ID_For (Autonumber, key)
For (text)
In terms of the relationships I've got:
tblMain:tblCase 1:1
tblMain:tblWhat 1:1
tblMain:tblSupervisor 1:1
tblMain:tblUser 1:1
tblUser:tblFor 1:1
I've got the relationships all working nicely but I have one small issues
(and I say small because I think I know how to fix this in a form so the user
may never actually see it) but something I thought I'd ask about in case
there was a solution of which I am unaware. As you can see from the
structure above, tblMain looksup to tblUser and stores that reference. I'd
like to make it prettier in the combobox in the field in tblMain under the
User field. Right now I've got the combo displaying UserName, UserNumber,
and UserFor but for the UserFor it shows the tblFor.ID_For value rather than
the actual tblFor.For value. Like I said, I think I know what to do to get
this to be prettier (to display the for rather than the ID linking the for
with user). Is this impossible? Have I chosen the wrong structure? Where
did I go wrong?
friend. The Database has a number of tables with relationships to other
tables. Here's the basics:
tblMain:
ID_Main (autonumber, key)
Date (date/time)
Case (lookup to tblCase)
Supervisor (lookup to tblSupervisor)
User (lookup to tblUser)
what (lookup to tblWhat)
tblCase:
ID_Case (autonumber, key)
CaseName (text)
CaseIdentifier (text)
tblSupervisor:
ID_Supervisor (autonumber, key)
SupervisorName (text)
SupervisorNumber (Number)
tblUser:
ID_User (Autonumber, key)
UserName (text)
UserNumber (Number)
UserFor (lookup to tblFor)
tblWhat:
ID_What (Autonumber, key)
What (text)
tblFor:
ID_For (Autonumber, key)
For (text)
In terms of the relationships I've got:
tblMain:tblCase 1:1
tblMain:tblWhat 1:1
tblMain:tblSupervisor 1:1
tblMain:tblUser 1:1
tblUser:tblFor 1:1
I've got the relationships all working nicely but I have one small issues
(and I say small because I think I know how to fix this in a form so the user
may never actually see it) but something I thought I'd ask about in case
there was a solution of which I am unaware. As you can see from the
structure above, tblMain looksup to tblUser and stores that reference. I'd
like to make it prettier in the combobox in the field in tblMain under the
User field. Right now I've got the combo displaying UserName, UserNumber,
and UserFor but for the UserFor it shows the tblFor.ID_For value rather than
the actual tblFor.For value. Like I said, I think I know what to do to get
this to be prettier (to display the for rather than the ID linking the for
with user). Is this impossible? Have I chosen the wrong structure? Where
did I go wrong?