A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Relationship Question and follow up form question



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2007, 02:23 PM posted to microsoft.public.access.forms,microsoft.public.access.tablesdbdesign
Steve
external usenet poster
 
Posts: 2,662
Default Relationship Question and follow up form question

Greetings,

I have been pouring over this question for a bit and finally decided to ask
here.

I have the following table structu

tblOfficeLocation:
OfficeLocationID - PK(AutoNumber)
OfficeLocation - Text

tblRoomDesignators:
RoomID - PK(AutoNumber)
RoomDesignation - Text

tblOfficeRoomJunction:
OfficeRoomID - PF(AutoNumber)
OfficeLocationID - Number
RoomID - Number

tblUserTable:
UserID - PK(AutoNumber)
OtherFields here
OfficeRoomID - Number

I set up the relationships thus:

An office can have more than 1 room nunmber and each room number may also be
used in other office locations. Enforced RI, and Cascading updates and
deletes for both.
tblOfficeLocation1----mtblOfficeRoomJunctionm----1tblRoomDesignators

Each user will be assigned an office and room number but there may be more
than 1 user at the same location. A user will only ever be assigned to one
location. Enforced RI, Cascade updates only.
tblOfficeRoomJunction1----mtblUserTable

Here is what I want to do:

On the user form(My main form), I want 2 combo boxes. One for the Office
Location and one for the Room Number. Whichever one is used first I want the
other to only list the data associated with the combo 1st chosen.

I would like to be able to update either the OfficeLocation or
RoomDesignation and have that follow through to my user form. I want to be
able to delete a location or room designation via a form without deleting the
user but have the office location and room designation information removed
from the user form.

Now the question:
Is my data structure setup to allow this and, if so, can I get pointers on
how to set up my forms to allow what I want to do?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.