jmstarbuck
Programmer
I am having trouble to get Dlookup to work in a form that it once worked in. However, I've renamed some things and I can't get it working again.
Here's the setup:
I have a mainform named BidRequest_Form. Contained in it is a continuous form named Bids_subform
The Dlookup is in the subform, as is the control CompanyCmb (datasource=CompanyID). I've tried setting my form field equal to the following:
I've also tried:
The table is SkilledTrades the field is MinorityCode.
Any light would be greatly appreciated. I have referred to the Syntax for Main/Subforms document, but I must be missing something.
J
Here's the setup:
I have a mainform named BidRequest_Form. Contained in it is a continuous form named Bids_subform
The Dlookup is in the subform, as is the control CompanyCmb (datasource=CompanyID). I've tried setting my form field equal to the following:
Code:
=DLookUp("MinorityCode","SkilledLabor","ID = " & Forms!BidRequest_Form!Bids_subform.Form!CompanyCmb)
I've also tried:
Code:
=DLookUp("MinorityCode","SkilledLabor","ID = " & Me!CompanyCmb)
The table is SkilledTrades the field is MinorityCode.
Any light would be greatly appreciated. I have referred to the Syntax for Main/Subforms document, but I must be missing something.
J