Solved how to create a relationship where columns depends on another column (1 Viewer)

atzdgreat

Member
Local time
Yesterday, 22:40
Joined
Sep 5, 2019
Messages
32
OBJECTIVE:
To create an entry in table where Business Unit Column will depend on what is inside in Organization Column. Same thing in Business Unit Code,

TABLE:
OrganizationBusinessUnitBusinessUnitCode
X OrgFinanceFIN
X OrgPayrollPYR
X OrgITIT
X OrgSurveillanceSRV
Y OrgTest BUTB

TbleEntry (for data entry)
an example to this is if i am going to select Y Org in Organization. BusinessUnit available list should be Test BU.
1711351413549.png

1711351600491.png

but when i used to click the option in BusinessUnit. it give me all the the BusinessUnit.
1711351553792.png

1711351685329.png


same thing in BusinessUnitCode
1711351578475.png
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 13:40
Joined
May 7, 2009
Messages
19,243
you need to use a Datasheet Form.
see Table1 form.
 

Attachments

  • Business.accdb
    608 KB · Views: 24

plog

Banishment Pending
Local time
Today, 00:40
Joined
May 11, 2011
Messages
11,646
First and least, you don't do this in a table but in a form. The term to search this forum for is 'cascading drop down'

Second and most importantly, this shouldn't be done at all because you are storing data improperly. You shouldn't be duplicating data in tables. If organization\unit\code live together in one table but needed in another you assign a primary key in the main table and then use a foreign key in the table you want to assign organization\unit\code to.
 

Users who are viewing this thread

Top Bottom