Cascading Combos (1 Viewer)

AdelaideKiwi

New member
Local time
Today, 17:59
Joined
Feb 7, 2021
Messages
11
I know I'm close but just need some help with the attached please.

The Product Type is the parent and the Product Sub Type is the Child.

Just want to show the filtered fields in the child when the parent is selected in the form.

Thanks AdelaideKiwi
 

Attachments

  • cascading combos1.accdb
    444 KB · Views: 116

MajP

You've got your good things, and you've got mine.
Local time
Today, 04:29
Joined
May 21, 2018
Messages
8,527
1. Bind the Product combo to 1 not 2
2. Requery subtype combo in its on enter event
3.
Code:
SELECT
tblProductSubType.ProductSubTypeID,
tblProductSubType.ProductSubType
FROM tblProductSubType
WHERE
(((tblProductSubType.[Product Type])=[forms]![frmProduct]![Combo16]))
ORDER BY
tblProductSubType.ProductSubType;
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,233
on Combo16, i change the Bound Column to 1 (ProductTypeID).
see the AfterUpdate event of this combo.
 

Attachments

  • cascading combos1.accdb
    576 KB · Views: 86

AdelaideKiwi

New member
Local time
Today, 17:59
Joined
Feb 7, 2021
Messages
11
The db above was a training db and based on your advise I got it working but when I went to do it in my actual db - it seems to have a problem with requery?
 

Attachments

  • Cascading combos 2.accdb
    636 KB · Views: 110

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,233
check this.
 

Attachments

  • Cascading combos 2.accdb
    928 KB · Views: 99

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,233

Users who are viewing this thread

Top Bottom