J
johansf
Who can help me??? I would appreciate this.
I'm trying to do a check on a table see below. But I get a Type mismatch
error on the And "[Primary contact]= true" Can someone help me with this?
the collum is a field where I reffer to.
Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Extra contacts"
stLinkCriteria = "[HD ID]=" & "'" & Me![HD ID] & "'" And "[Primary
contact]= true"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click
I'm trying to do a check on a table see below. But I get a Type mismatch
error on the And "[Primary contact]= true" Can someone help me with this?
the collum is a field where I reffer to.
Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Extra contacts"
stLinkCriteria = "[HD ID]=" & "'" & Me![HD ID] & "'" And "[Primary
contact]= true"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click