chillfactor
Technical User
Hi all,
I hope someone can help me with this problem I've got. I'll start with the background, I have an access database that we use as a HelpDesk package. We send out daily stats to clients and need to be able to bring up how many new calls have been opened today. I've written a SQL statement that does all that apart from the today bit. At the moment I'm getting all open calls no matter what the date. Here's the code.
SELECT Count(*) AS CallCount FROM calls WHERE Company_ID=7 AND Call_Completed=False AND On_Hold=False AND Call_Date=Date()
As far as I'm aware Date() is a VBA function, but is there a SQL equivelant?
Has anyone got any hints? I'm quite a bit stuck with it and would appreciate a fresh perspective.
Thanks,
Steve B.
I hope someone can help me with this problem I've got. I'll start with the background, I have an access database that we use as a HelpDesk package. We send out daily stats to clients and need to be able to bring up how many new calls have been opened today. I've written a SQL statement that does all that apart from the today bit. At the moment I'm getting all open calls no matter what the date. Here's the code.
SELECT Count(*) AS CallCount FROM calls WHERE Company_ID=7 AND Call_Completed=False AND On_Hold=False AND Call_Date=Date()
As far as I'm aware Date() is a VBA function, but is there a SQL equivelant?
Has anyone got any hints? I'm quite a bit stuck with it and would appreciate a fresh perspective.
Thanks,
Steve B.