Solved

query error in access 2010 dao 3.6

Posted on 2016-09-27
5
44 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 34

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now