Solved

query error in access 2010 dao 3.6

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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…

759 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

23 Experts available now in Live!

Get 1:1 Help Now