Solved

DatDiff("t";[Opening];30.06.##)

Posted on 2002-05-13
3
198 Views
Last Modified: 2012-05-04
I do need to make a billing in Mid-June for the 1H-Year for the customers. The period to calculate is from the opening or 01.01. of the relationsship to the End of June (30.06.). This has to be done every year, so I cannot use 30.06.2002 to calculate the DatDiff. But if I use only 30.06., the system reports an error. I actually use

If([J]=[Jr] and [Mt] between 1 and 6;DatDiff("t";[Opening];"30.06.##");"180")

Any idea how to solve the problem?
Thanks
ColumA
0
Comment
Question by:ColumA
  • 2
3 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7005567
Try this:

If([J]=[Jr] and [Mt] between 1 and 6;DatDiff("t";[Opening];"30.06." & Year(now)  );"180")

CHeers
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 150 total points
ID: 7005570
or, assuming that [J] and [Jr] contain the year values:

If([J]=[Jr] and [Mt] between 1 and 6;DatDiff("t";[Opening];"30.06." & [J] );"180")

CHeers

0
 

Author Comment

by:ColumA
ID: 7005619
Thank you for the prompt answer.
Rgds
ColumA
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

757 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

20 Experts available now in Live!

Get 1:1 Help Now