Solved

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

Posted on 2002-05-13
3
207 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SPROC to look for existing record in passed table name 7 49
Sending email from List Data 2 51
Explanation of Access VBA code 2 36
DSum for Access 6 47
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
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…
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 …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

867 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

21 Experts available now in Live!

Get 1:1 Help Now