I am revising a form to me a customers needs. They want to select more than one defect and write a descriptions with the code. To do this I set up a sub form on a tab control. Many of the fields including the defect codes change based on the contractor involved. So when the select a contractor other than the default one, the defect code selection list has to change and needs to be re-queried. I get the "No field by this name" error message.
Listed below are my current code and the related information.
Thanks for any help you can give me.
DoCmd.Requery "Me!PAtabs.Page(0)!LocalDefectCodes.Form!DefectCode"
Main form:
Name: frmProductAuditAadd
Record Source: qryProductAuditListAAdd
Tab Control:
Name: PATabs
Page Index: 0
Page Name: AcftInfo
Subform:
Name: LocalDefectCodes
Source Ofject: frmPADefectCodes
Default view: Data sheet
Control:
Name: DefectCode
Type: ComboBox
Listed below are my current code and the related information.
Thanks for any help you can give me.
DoCmd.Requery "Me!PAtabs.Page(0)!LocalDefectCodes.Form!DefectCode"
Main form:
Name: frmProductAuditAadd
Record Source: qryProductAuditListAAdd
Tab Control:
Name: PATabs
Page Index: 0
Page Name: AcftInfo
Subform:
Name: LocalDefectCodes
Source Ofject: frmPADefectCodes
Default view: Data sheet
Control:
Name: DefectCode
Type: ComboBox