G
Guest
I have 2 forms where I need to continue the text with the IDNumber on each
form. I tried the following but it's coming up with a "Compile Error -
Invalid use of Property". (stWhere = "[CTANumber] = " & Me!Number_Text)
Private Sub Additional_Contacts_Click()
On Error GoTo Err_Additional_Contacts_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stWhere As SubForm
stDocName = "frm_CTAContactsView"
stWhere = "[CTANumber] = " & Me!Number_Text
DoCmd.OpenForm stDocName, stWhere, stLinkCriteria
Exit_Additional_Contacts_Click:
Exit Sub
Err_Additional_Contacts_Click:
MsgBox Err.Description
Resume Exit_Additional_Contacts_Click
End Sub
Could someone be so kind and tell me whats wrong with this?
form. I tried the following but it's coming up with a "Compile Error -
Invalid use of Property". (stWhere = "[CTANumber] = " & Me!Number_Text)
Private Sub Additional_Contacts_Click()
On Error GoTo Err_Additional_Contacts_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stWhere As SubForm
stDocName = "frm_CTAContactsView"
stWhere = "[CTANumber] = " & Me!Number_Text
DoCmd.OpenForm stDocName, stWhere, stLinkCriteria
Exit_Additional_Contacts_Click:
Exit Sub
Err_Additional_Contacts_Click:
MsgBox Err.Description
Resume Exit_Additional_Contacts_Click
End Sub
Could someone be so kind and tell me whats wrong with this?