Hi Everyone,
I am trying to count the number of table entries which have the same [starttime].
I am clearly missing something in the search criteria but cannot get the correct combination...
Here is the code:
I have tried a number of combinations Dimming as a string and as a date, Starttime is of type date/time.
Whenever I change the code I am getting either 0 returned (I have created to entries with the same [Starttime]) but as I have just created my current record there should always be at least the current record returning at least a 1? Or I get data type error or a syntax error!
I'm sure this is probably a simple apostrophe in the wrong place or something but I cannot get my head around it so please help!!
Thanks in advance
Carl :)
I am trying to count the number of table entries which have the same [starttime].
I am clearly missing something in the search criteria but cannot get the correct combination...
Here is the code:
Code:
Dim check As String check = DCount("[starttime]", "request", "[StartTime] = #" & Me.StartTime & "#") MsgBox ("" & check & "")
Whenever I change the code I am getting either 0 returned (I have created to entries with the same [Starttime]) but as I have just created my current record there should always be at least the current record returning at least a 1? Or I get data type error or a syntax error!
I'm sure this is probably a simple apostrophe in the wrong place or something but I cannot get my head around it so please help!!
Thanks in advance
Carl :)
Comment