wvandenberg
Technical User
I am building a custom wizard and am trying to implement faq702-5205 GLOBAL Not In List Event Handler. However, I am getting the error: "Run-time error '2465' ...can't find the field 'sfrImportWizardPage1' referred to in your expression." on the following line:
My main form (frmImportWizard) has an unbound subform "frmPage". In the OnLoad event for the main form, I do this:
The NotInList event for the combo looks like this:
It seems that the global NotInList procedure is setting my main form as the parent of sfrImportWizardPage1 when rather than frmPage.
Any suggestions on getting rid of this error?
Thanks,
Wendy
Code:
Set sfrm1 = frmMain(frmNames.Item(n)).Form
My main form (frmImportWizard) has an unbound subform "frmPage". In the OnLoad event for the main form, I do this:
Code:
Me.frmPage.SourceObject = "sfrImportWizardPage1"
Code:
Private Sub cboSource_NotInList(NewData As String, Response As Integer)
If AddToList(Me, "tblDataSources", "DataSourceDescription") Then
Response = acDataErrAdded
Else
Me.cboSource.Undo
Response = acDataErrContinue
End If
End Sub
It seems that the global NotInList procedure is setting my main form as the parent of sfrImportWizardPage1 when rather than frmPage.
Any suggestions on getting rid of this error?
Thanks,
Wendy