473,799 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ 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 1411
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,579 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
3769
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 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
13
2655
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, but I would like to have all the office apps on the same version. So I have a few questions: 1) Is the file format the same as 2002? Can 2002 users read 2003 files? 2) What are the major reasons for upgrading to 2002 ?
20
1981
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 to use lots 'o system resources, so I am wondering if I am best to go with the older (2002) version. Any opinions out here? In particular, which version more likely to make the conversion of the 97 databases the least painful? Both upgrades
1
310
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 mde in 2000. you can't export the 2002 mde to 2000, only the mdb. What do you recommend for somebody who needs to distribute the mde to many access users with different versions? Annoying!!
3
3163
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 populate a combo box with these names. (this way, I can display all the EMPLOYEE_NAME values) (2) In general, can I do additional processing on column values from
2
2336
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 database? Why you ask! A client has a 2000 database. Currently using 2000 runtime for most employees to work with database. A couple use 2003 to use database, no problems. They have a mix of versions of other products such as Word, Excel - 97,...
2
1821
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 development environment to Office 2003 Professional. My question is: Where can I find a comprehensive description of the known issues that will affect my ability to do all of the above after I upgrade my own development environment to Office...
15
4647
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 communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
20
5193
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 load in my custom ribbon for Access 2007. This function is called only when the check for running Access version 12 or higher is true. Everything works like I want in Access 2007. The problem is when I compile it on Access 2000,2002,2003,...
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10032
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4148
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 we have to send another system

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.