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  

Linking a field to multiple tables based on another field's input



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2008, 12:45 PM posted to microsoft.public.access.forms
PsyberFox
external usenet poster
 
Posts: 88
Default Linking a field to multiple tables based on another field's input

Hi there,

Let me explain the subject line:
I have a field (dropdown box) where the user can select a department. Based
on the selected department, two things must happen. Firstly another field
called machine number, must only be available for 2 of the departments. And
secondly, based on which one of the two, the machine number for department 1
or department 2 must be available for the MachNo field. In other words, when
selecting department 1 a table with department 1's machine numbers must be
available, and likewise for department 2... with a separate table with it's
machine numbers. How would I go about doing this?

Thank you!
  #2  
Old May 15th, 2008, 01:21 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Linking a field to multiple tables based on another field's input


I think you are after "cascading combos". There are loads of queries on this.

"PsyberFox" wrote:

Hi there,

Let me explain the subject line:
I have a field (dropdown box) where the user can select a department. Based
on the selected department, two things must happen. Firstly another field
called machine number, must only be available for 2 of the departments. And
secondly, based on which one of the two, the machine number for department 1
or department 2 must be available for the MachNo field. In other words, when
selecting department 1 a table with department 1's machine numbers must be
available, and likewise for department 2... with a separate table with it's
machine numbers. How would I go about doing this?

Thank you!

  #3  
Old May 15th, 2008, 05:00 PM posted to microsoft.public.access.forms
scubadiver
external usenet poster
 
Posts: 1,673
Default Linking a field to multiple tables based on another field's input


If this *is* what you are after you don't need a separate table for each
department. ave a one to many relationship between two tables (one for
department and one for machines)

"PsyberFox" wrote:

Hi there,

Let me explain the subject line:
I have a field (dropdown box) where the user can select a department. Based
on the selected department, two things must happen. Firstly another field
called machine number, must only be available for 2 of the departments. And
secondly, based on which one of the two, the machine number for department 1
or department 2 must be available for the MachNo field. In other words, when
selecting department 1 a table with department 1's machine numbers must be
available, and likewise for department 2... with a separate table with it's
machine numbers. How would I go about doing this?

Thank you!

 




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 07:12 AM.


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