P
PadmaBhaskar
I am trying to use DCount criteria to verify if the record with some
criteria already exists in a table. Here's the code I used:
Dim conKey As String
Dim strExist As String
conKey = txtBox1 & txtBox2 & txtBox3
strExist = DCount("[Concatenated_Key]", "MASTER_KEY_TABLE",
"[Concatenated_Key] = conKey")
If (strExist > 0) Then
MsgBox "Already exists"
End If
This doesn't seem to verify the criteria. I don't know if my DCount
syntax is wrong. Please help!
Thanks!
criteria already exists in a table. Here's the code I used:
Dim conKey As String
Dim strExist As String
conKey = txtBox1 & txtBox2 & txtBox3
strExist = DCount("[Concatenated_Key]", "MASTER_KEY_TABLE",
"[Concatenated_Key] = conKey")
If (strExist > 0) Then
MsgBox "Already exists"
End If
This doesn't seem to verify the criteria. I don't know if my DCount
syntax is wrong. Please help!
Thanks!