D
DawnP277
I am trying to count the number of records in my table that have the the same
base and date.
I wrote some code but it is not executing. I know I am missing something.
If someone could look at my code I would appreciate it.
Dim IntCount As Variant
strSQL = "Select(*)" _
& "From [Tabledata]" _
& " WHERE Tabledata.[Base] = BaseLetter" And "Tabledata.[TDate] =
DDate;"
Set rs2 = db.OpenRecordset(strSQL)
rs2.MoveLast
IntCount = rs2.RecordCount
Thank you
Dawn
base and date.
I wrote some code but it is not executing. I know I am missing something.
If someone could look at my code I would appreciate it.
Dim IntCount As Variant
strSQL = "Select(*)" _
& "From [Tabledata]" _
& " WHERE Tabledata.[Base] = BaseLetter" And "Tabledata.[TDate] =
DDate;"
Set rs2 = db.OpenRecordset(strSQL)
rs2.MoveLast
IntCount = rs2.RecordCount
Thank you
Dawn