G
George Papadopoulos
Hello, Access community
I have written the code below :
Dim strSelect As String
Dim intRecordCount As Integer
If Not IsNull(Me.Kwdikos_episkeyhs) Then
strSelect = "Select Count(*) From ANTALLAKTIKA WHERE Kwdikos_episkeyhs
=" & Me.Kwdikos_episkeyhs
intRecordCount = DoCmd.RunSQL(strSelect)
Else
MsgBox ("Error message!")
End If
The code fails with a compile error message. Is this the recommended
approach to get the number of records in table ANTALLAKTIKA under the
condition
above?
thx, in advance
George Papadopoulos
Electronic Engineer
I have written the code below :
Dim strSelect As String
Dim intRecordCount As Integer
If Not IsNull(Me.Kwdikos_episkeyhs) Then
strSelect = "Select Count(*) From ANTALLAKTIKA WHERE Kwdikos_episkeyhs
=" & Me.Kwdikos_episkeyhs
intRecordCount = DoCmd.RunSQL(strSelect)
Else
MsgBox ("Error message!")
End If
The code fails with a compile error message. Is this the recommended
approach to get the number of records in table ANTALLAKTIKA under the
condition
above?
thx, in advance
George Papadopoulos
Electronic Engineer