Solved

query error in access 2010 dao 3.6

Posted on 2016-09-27
5
57 Views
Last Modified: 2016-10-16
I'm getting an error on a query on some machines, but not mine
dao reference 3.6

Hours Minutes: Format([inprogress_or_closed_at]-[OPENED_AT],"Short Time")

Could there be another way to write this query ?

error:
"function is not available in expressions in query expression"

Thanks
fordraiders
0
Comment
Question by:fordraiders
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 41818191
I've attached a database that will help you.  It has functions to work with dates.

The problem with what you are doing is that date fields represent a point in time.  They do not represent elapsed time which is what you are trying to calculate.
UsefulDateFunctions121218b.zip
2
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 41818255
On those machines your application is missing a reference. Go to the code window, menu Tools, References and check that none is MISSING. If so, correct that.

Compile and save the application.

/gustav
1
 
LVL 3

Author Comment

by:fordraiders
ID: 41843505
I have been on vacation.
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 41846132
sorry for the issue
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question