Rabu, 17 Februari 2016

[MS_AccessPros] Re: Datepart not available

 


Here's a little more info about this weird problem. If I open the ACCDB file and save as ACCDE on the PC that errors, the ACCDE that was created on the problem PC will run but not if the ACCDE was created on my development PC. I've tried compacting and repair and decompile and recompile before creating the accde file but that hasn't helped.

Doyce

---In MS_Access_Professionals@yahoogroups.com, <winberry.doyce@...> wrote :

Pros,

I have one PC running an accde file that errors when a particular form is opened with this error message:

Function is not available in expressions in query expression '(((DatePart("yyyy",[ORDDTE_27]))>=Year(Date())-1)'. The particular form opens on every other PC using the same copy of the ACCDE file. The database is split and each user has their own accde file on their PC. Here is the SQL of the form's record source:

SELECT [SO Master].ORDNUM_27, [SO Master].COMNT2_27, [SO Master].COMNT3_27, [SO Master].CUSTID_27, [SO Master].CUSTPO_27, [SO Master].ORDDTE_27, [SO Master].COMNT1_27, DatePart("yyyy",[ORDDTE_27]) AS CurYear
FROM [SO Master]
WHERE (((DatePart("yyyy",[ORDDTE_27]))>=Year(Date())-1));


Doyce

__._,_.___

Posted by: winberry.doyce@roadsysinc.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

.

__,_._,___

Tidak ada komentar:

Posting Komentar