S
Simon Baker
This morning, after years of successful operation, a series of queries using
functions as parameters ceased to work. To illustrate the problem, I tried
the following SQL query:
SELECT ClientContact.[Client ref], ClientContact.Analyst,
ClientContact.Ttype, ClientContact.Date
FROM ClientContact
WHERE (((ClientContact.Ttype)="voicemail") AND
((ClientContact.Date)=Format(Now(),"dd/mm/yyyy")));
which generates the error 'Function is not available in query expression'
Changing it to
SELECT ClientContact.[Client ref], ClientContact.Analyst,
ClientContact.Ttype, ClientContact.Date
FROM ClientContact
WHERE (((ClientContact.Ttype)="voicemail") AND
((ClientContact.Date)=#1/29/2007#));
works fine. I suspect our IT department has released a patch that has
screwed something up, but cannot pin it down. Has anyone else seen a similar
problem? Needless to say, this has caused untold problems! I am using Access
2003 (v. 11.6566.8107) SP2 on XP Professional v. 5.1.2600 SP2
Thanks in advance
Simon
functions as parameters ceased to work. To illustrate the problem, I tried
the following SQL query:
SELECT ClientContact.[Client ref], ClientContact.Analyst,
ClientContact.Ttype, ClientContact.Date
FROM ClientContact
WHERE (((ClientContact.Ttype)="voicemail") AND
((ClientContact.Date)=Format(Now(),"dd/mm/yyyy")));
which generates the error 'Function is not available in query expression'
Changing it to
SELECT ClientContact.[Client ref], ClientContact.Analyst,
ClientContact.Ttype, ClientContact.Date
FROM ClientContact
WHERE (((ClientContact.Ttype)="voicemail") AND
((ClientContact.Date)=#1/29/2007#));
works fine. I suspect our IT department has released a patch that has
screwed something up, but cannot pin it down. Has anyone else seen a similar
problem? Needless to say, this has caused untold problems! I am using Access
2003 (v. 11.6566.8107) SP2 on XP Professional v. 5.1.2600 SP2
Thanks in advance
Simon