Following code results in an error that says "Method 'Item' of object 'Forms' failed". Error occurs on the "Set lstBox..." line.
Dim lstBox As ListBox
DoCmd.OpenForm "frmMktSgmtSelect", acNormal
Set lstBox = Forms!frmMktSgmtSelect!lstMktSgmts
Can someone explain why I am getting this error and how it can be addressed?
Thank you for any help.
Jim
Dim lstBox As ListBox
DoCmd.OpenForm "frmMktSgmtSelect", acNormal
Set lstBox = Forms!frmMktSgmtSelect!lstMktSgmts
Can someone explain why I am getting this error and how it can be addressed?
Thank you for any help.
Jim