Solved

query error in access 2010 dao 3.6

Posted on 2016-09-27
5
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 38

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 50

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

691 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