Form with Subform and combo boxes not populating properly

SiteDataView

New Member
Joined
Feb 2, 2015
Messages
1
Hello all!

I have a main form called frmEstimate with a detail sub form called frmEstimateDetails. The main form contains record info while the sub form contains record details (so 1 main record to many detail rows). I have 3 combo boxes on the sub form cboWorkType, cboWorkDepartment and cboWorkCategory. I'd like to populate cboWorkDepartment based on the selection of cboWorkType and populate cboWorkCategory based on the selections of both cboWorkType and cboWorkDepartment. Once I have selected values in all 3 dropdowns, I'd like to autopopulate a txt box called txtBaseRate with a the corresponding value from the table. So basically I'm generating the "Where" clause in a sql statement. Now when I create this on a standalone form it works great and I'm using "where WorkType = forms!frmEstimateDetails!cboWorkType" however since it's a sub form this logic isn't working and just keeps prompting me. Can anyone please help me with the syntax to get this to work I'm stumped!

I'm on Access 2010/Windows 7

Thanks in advance,
Kim
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top