I've written the following procedure for my form:
Code:
Private Sub PrintFamily()
Dim strLastName1$
Dim strLastName2$
Dim strFamily$
strLastName1 = Forms![Member Entry Form]!txtLastName1
strLastName2 = Forms![Member Entry Form]!txtLastName2
strFamily = strLastName1
If strLastName1 <> strLastName2 Then
strFamily = strLastName1 & "/" & strLastName2
End If
Me.txtFamily = strFamily
End Sub
But then I get the following error:
run-time error '2450' microsoft office access can't find the form referred to in a macro expression or Visual Basic Code
What's the issue?