473,803 Members | 3,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Date calculation

We need to track how often a book has been loaned. We enter the dates
and need an automatic calculation how often in the preceeding 12 months
it has been taken out. box 1: today's date box 2: loaned n+1
How do I go about this please?
Lindie

Nov 13 '05 #1
3 2730
<Li****@magicha ns.com> wrote
We need to track how often a
book has been loaned. We enter
the dates and need an automatic
calculation how often in the pre-
ceeding 12 months it has been
taken out. box 1: today's date box 2: loaned n+1 How do I go about this please?


If you will clarify what data you _keep_ about the book and loans, not just
what you want to _return/calculate_, someone may be able to offer a useful
suggestion.

If you only have one record per loan and it contains the checkout date,
you'll insert today's date as criteria for the date field, and use the count
function on a field that is not null in any record... but you may be using
different information to track book loans.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #2
Thank you Larry for suggesting some more clarity from me.
A particular event occurs: a book is loaned
this happens on a particular date DateY
This book has also been loaned on previous dates

What we need is when we enter date Y is for the total number of times
the book has been loaned out in the previous 12 months.
something like [number of loans over (today-12 months)]
Lindie

Nov 13 '05 #3
Larry,

Just thought through your suggestion about using the date. This we
could do because there is a date every time a book is loaned. I am
stuck though as to where to go from there. You mentioned there not
being any '0' records but there will be. Some weeks a particular book
will remain on the shelf.
Using a count function- whatever that is- may not work.
Sorry to be more than a little dense.
L

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5395
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and calculate days, months, and years. This is not for a college course. It's for my own personal genealogy website. I'm stumped about the code. I'm working on it but not making much progress. Is there any free code available anywhere? I know it...
6
2729
by: Michael Bulatovich | last post by:
I have a very simple db I use for keeping track of hours, tasks, projects, clients etc. It has a form that I use to enter data. Currently the form has a textbox for a field called "start time", another for a field called "end time" and a third for a field called "hours", among other controls. I now type in the approximate times in the first two textboxes, and mentally calculate and enter the difference or elapsed time in the third. I...
15
3615
by: Pres | last post by:
I am not an experienced programmer. I do have a question regarding workday calculations. I have 3 fields. CURDATE, NUMDAYS, CALCDATE After entering the first two fields, normally the current date and for example 10 (10 day period) I need the CALCDATE to pass me the calculated date taking into account workdays and holidays. In other words, the 10th business day. How is this done? Thanks for any help...
4
2544
by: JMCN | last post by:
object invalid or no longer set - confusion of the recordset in access 2003. i am currently converting from access 97 to access 2003. majority of the codes converted over perfectly fine, though my recordset did not. i read from pasts posts that some references will not convert. so i tried to change the dao 3.51 reference to dao 3.6 in access 97. then i imported all of the objects into an access 2003. it did not work. so my second...
8
1624
by: John Beeler | last post by:
I am a graduate student writing a thesis on a space in Indianapolis called the Circle. I'm trying to figure something out that would really help me out as I write this thing. I would like to be able to enter in a structure, the range of dates it existed, and the lot number (there are 19 lots around the Circle, but I'm planning on technically counting the center Circle itself as a lot - so 20). I would enter something like:
14
2470
by: Crimsonwingz | last post by:
Need to calculate a sum based on a number of factors over a period of years. I can use formula ^x for some of it, but need totals to carry over in the sum and have only been able to do this thus far with a loop in a form. Basically, I have key sums Current savings Current Salary Current deposit amount
3
8069
by: audleman | last post by:
I've been programming in Filemaker and am used to having a field type called Calculation. An example of a calculation: In a school registration database I have a date field corresponding to the start of a quarter. I create a Calculation field to automatically generate a human readable text string that looks like 'Spr 2005, Wi 2005, etc'. Is there a way of doing this in Access? Thanks, Kevin
1
19413
MMcCarthy
by: MMcCarthy | last post by:
Access has a number of built-in functions which can be generally used in queries or VBA code. Some of the more common ones are: Note: anything in square brackets is optional Date Functions Date() - Returns the current system date Now() - Returns the current system timestamp (date and time)
15
2025
by: Widge | last post by:
Hi, I wondered if you could help me with an issue I'm having. Currently I have a rebate calculation that is running off two tables: 1) A list of suppliers and the rebate %ages relevant to them 2) A ongoing list of invoice details, including a month/year period and an invoice total At the moment, I can happily run the rebate calculation for the current month. What I would like to do is begin to track changes in supplier rebate rates...
0
9703
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
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10555
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...
1
10300
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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
9127
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...
0
6844
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();...
1
4277
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
2
3802
muto222
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.