473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

2015 was a year with 53 weeks

Hi!

I've got a small problem with my Access database.

We use this database every day to print out a new list that contains:
• Information about materials that are almost running out in our stock
• Information for one week
• Information per responsible person
• Information per supplier

Problem:

Normally one year exists out of 52 weeks.
2015 was a year that existed out of 53 weeks...

Thanks to this extra week the database doesn't select the correct weeks anymore.

How can i fix this problem?

Thank you in advance!


Grts
May 19 '16 #1
3 941
Seth Schrock
2,965 Expert 2GB
Well, it depends on how you count the weeks. It may have had 53 Mondays, but it still only had 365 days, not 371 (53 times 7). So it sounds like you have a formula that isn't using the most accurate calculation. To help you, we would need to see your current calculation and to know what you are trying to do.
May 19 '16 #2
NeoPa
32,556 Expert Mod 16PB
LeysenS:
How can I fix this problem?
What problem? You haven't described a problem but only stated some years are different from others. Not too surprising if you think about it.

That highlights an important point - The importance of considering the problem as a whole before designing a solution. This is a basic tenet of software development, but is even more important for database design. I'm left confused that you might not realise a year is not an exact multiple of seven.

Without a description of the problem it's hard to offer much. I suspect that allowing for 53 weeks in your design would fix your problem, but not if you've designed it to have exactly a set number each year.

If you can manage to describe your problem for us we'll see what we can come up with to help.
May 19 '16 #3
zmbd
5,501 Expert Mod 4TB
Ok, a third vote on the situation - the "aye"s have it - too little detail

HOWEVER, I do remember working on something dealing with this type of 52 vs 53 issue, perhaps if you will take a look at this thread and then re-think your question we can salvage this thread :)
https://bytes.com/topic/access/answe...mber-ms-access

There are a couple of links in this thread that you might want to follow.
May 21 '16 #4

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

Similar topics

2
by: John | last post by:
If anyone can help me out with a good way to do this in javascript I would greatly appreciate it. I need to compute three dates in javascript - all of which relate to a given date, say todays...
37
by: mazwolfe | last post by:
I'm new here, so excuse me if my style is incorrect. Can anyone come up with a better method for this calculation? Code: int is_leap(int year) { switch (year % 19) { case 0: case 3: case 6:...
14
by: Tommy Jakobsen | last post by:
Hi. Is there a method in .NET that takes "year" as an argument and returns the total number of weeks in that year? For culture da-DK (Danish). Thanks in advance. Tommy.
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, is there a way if you are given a Year and a Week an easy way to go back say 26 weeks ago from given year/week. for example, given: 2008/16 26 weeks prior is: 2007/43 thanks,
4
by: JDub22 | last post by:
I am attempting to set the field properties for the autonumber data type to yield an auto number that starts with a two digit year. The 4 digit year will also work. I am trying to get a result that...
2
by: msarzoza | last post by:
What is the code to take a date (mm/dd/yyyy) entered by the user and formatting it to Month & Year. So for example, if the user enters 1/31/2015 I want to copy it to another cell and format it to...
1
by: kiran338 | last post by:
Hi, I am lookinglogic for the below issue. When the current calendar date is between January 1 and August 31, add only the previous year in the drop down. For example, if the calendar date is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...
0
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,...

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.