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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Linked Comboboxes. Breakdown in levels.



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2008, 11:37 PM posted to microsoft.public.access.tablesdbdesign
Nicola M
external usenet poster
 
Posts: 24
Default Linked Comboboxes. Breakdown in levels.

Hi all! Access 2003.
Probably this issue is due to an incorrect database design phase but I post
here because I find the problem building a form.
I have a series of data logically connected each other that I manage with
linked comboboxes (maybe this isn't the right definition). I have a
cboSector, a cboBranch, a cboOffice, a cboDuty and so on. Right now, writing
code, I discover that for some path I have 4 levels but for other I have 5 or
6 levels thus I need 1 or 2 other cbos more. The question is about tha way to
manage this issue.
1) For a 4 level path there's no problem;
2) For a 5/6 level path I'm thinking to show/hide the 5th and the 6th cbos
programatically when I need them.
This approach unfortunately cause a lot of empty fields in the 4 level path
records and some empty fields in the 5 level path records. Designing best
practises allow this or not? There's a better way to follow?
Thank you in advance for your cooperation.

Nicola.

PS.
Hope the explanation is clear also.
  #2  
Old December 14th, 2008, 07:53 PM posted to microsoft.public.access.tablesdbdesign
Steve[_57_]
external usenet poster
 
Posts: 598
Default Linked Comboboxes. Breakdown in levels.

You need tables for the six levels which you probably have. Consider this
design:
TblMainobject
MainObjectID
SectorID
BranchID
OfficeID
DutyID

TblLevel5AndLevel6
Level5AndLevel6ID
MainObjectID
Level5ID
Level6ID

Record all your main objects in TblMainobject. Record only your main objects
that have level5 and or level 6 in
TblLevel5AndLevel6. To do this, use a form/subform. Base the main form on
TblMainobject and base the subform on TblLevel5AndLevel6. Use a query that
includes both tables as the recordsource for any forms and reports where you
want to display the data from both tables.

Steve


"Nicola M" wrote in message
...
Hi all! Access 2003.
Probably this issue is due to an incorrect database design phase but I
post
here because I find the problem building a form.
I have a series of data logically connected each other that I manage with
linked comboboxes (maybe this isn't the right definition). I have a
cboSector, a cboBranch, a cboOffice, a cboDuty and so on. Right now,
writing
code, I discover that for some path I have 4 levels but for other I have 5
or
6 levels thus I need 1 or 2 other cbos more. The question is about tha way
to
manage this issue.
1) For a 4 level path there's no problem;
2) For a 5/6 level path I'm thinking to show/hide the 5th and the 6th cbos
programatically when I need them.
This approach unfortunately cause a lot of empty fields in the 4 level
path
records and some empty fields in the 5 level path records. Designing best
practises allow this or not? There's a better way to follow?
Thank you in advance for your cooperation.

Nicola.

PS.
Hope the explanation is clear also.



 




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 10:37 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.