473,473 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help with: DayCounts in Access 2003

55 New Member
I have a rolling cumulative income amount for each day. Right now my query would need me to run it everyday (weekday, weekend or holiday) for it to work. My data looks something like this:

Distribution dollar amounts:

Expand|Select|Wrap|Line Numbers
  1. Today (T)      T+1       T+2
  2. 300              350        375
These distribution dollar amounts are for Today (T). In my query, I have a cumulative total for the entire month, which I enter into a different system.

For example if the cumulative distribution is based on two days above we would have the following:

ie. 650 (9/26/07) would actually be inputted on 9/27/07 period.

Now my issue arises over weekends and holidays. I have performed a day count, which allows the query to tell me the exact number of days since the last update.

What I would like to do with that is calculate the cumulative total over the weekend as if I was running it on business day.

Below is my query with what I have so far. Any help would be greatly appreciated.

Expand|Select|Wrap|Line Numbers
  1. SELECT [Units Entries (GLDST-)].[Fund Number], Max([Units Entries (GLDST-)].[Compass Entry Date]) AS [MaxOfCompass Entry Date], Last([NAV's - ETF Income Adjustments (data)].UNITS) AS LastOfUNITS, Last(DateDiff("d",[Compass Entry Date],Date())) AS Daycount
  2. FROM [Units Entries (GLDST-)] INNER JOIN [NAV's - ETF Income Adjustments (data)] ON ([Units Entries (GLDST-)].[Compass Entry Date] = [NAV's - ETF Income Adjustments (data)].Date) AND ([Units Entries (GLDST-)].[Fund Number] = [NAV's - ETF Income Adjustments (data)].[Fund Number])
  3. GROUP BY [Units Entries (GLDST-)].[Fund Number];
Sep 26 '07 #1
3 1393
eskelies
55 New Member
Here is the situation: Access 2003

I am forecasting future dollar amounts, which are cumulative each and every day of the month. What I have done so far (which isn't much) is built a datasheet called, "Calendar." Calendar gives me all the days out to 2014 and with a "Yes" tells me if it is a holiday/weekend.

Firstly, is there a way to do this without building this from scratch? Such as using a count function? Help on this would be greatly appreciative, but not necessary.


Secondly, how can I go about taking my calendar's information and the hardcoated information, which is business day amounts and forecast them for the weekend.

For example, on Thursday we have a cumulative dollar amount of $200. On friday we have a daily dollar amount of $100. This $100 dollars will be added to the $200 (Giving us $300) for Saturday's (T+1) cumulative dollar amount. The same goes for Sunday (T+2), Mondays (T+3) and Tuesday (T+4) if monday is a holiday.

Thank you very much, for assistance. I grealty appreciate it.
Oct 1 '07 #2
nico5038
3,080 Recognized Expert Specialist
You might try the code from this link:
http://www.tek-tips.com/faqs.cfm?fid=3213

It uses a number of days and a startdate, but could be used to add your table with amounts and calculate the needed sum.

Nic;o)
Oct 6 '07 #3
NeoPa
32,556 Recognized Expert Moderator MVP
Eskelies,

If you're still interested in this could you try to ask it in a way that makes more sense. I tried to follow what you were saying but there were too many references to entirely unexplained concepts. I couldn't even work out the gist of what you're working with.
Oct 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
13
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine,...
20
by: Stephan Golux | last post by:
It seems I have run afoul of an unfixable and acknowledged bug in my beloved access 97 which has no workaround other than to upgrade. Current supported upgrades are 2002 and 2003. 2003 appears...
1
by: Danny | last post by:
I am looking to buy the above. I notice that access 2002 is more than 2003? I need to buy these versions because 2002 mde will not work on a 2000, and you must have a copy of 2000 to recreate the...
3
by: ssb | last post by:
Hello, This may be very elementary, but, need help because I am new to access programming. (1) Say, I have a column EMPLOYEE_NAME. How do I fetch (maybe, cursor ?) the values one by one and...
2
by: Jeff | last post by:
Does anyone know of any potential problems running a 2000 database with 2003? Also, what about installing all other Office products as 2003 versions but leaving Access as 2002 running a 2000...
2
by: Lauren Wilson | last post by:
Hi Folks, I have a widely distributed Access 200 Application. I must retain my ability to support users who are still on Access 2000 and Access 2000 Runtime. However I also need to upgrade my...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
20
by: KW | last post by:
I have an application that runs in any of Access 2000 thru Access 2007 to accommodate my customers' various environments. I implemented code to call a function that uses the LoadCustomUI method to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.