I have a search form to search some records. Search results sometimes will need to update field in subform. But when executing there happens to be a Runtime Error 2465 saying that it cant find the field 'Quotes2Sub'(subform name).
PrivateSub Select_click()
Dim strMF asString
Dim strSF asString
strMF=[mainform]
if subform=""then
forms(strMF).ClientID=ClientID
else
strSF=[Subform]
Forms(strMF).Controls(strSF).form.ClientID=ClientID
EndIf
EndSubRun time error states that the error is on
Forms(strMF).Controls(strSF).form.ClientID=ClientI D
With same code above using in another search form, it has worked without error...