I use a db for keeping up with my checkbook and I'm having trouble
setting up a new functionality. I get paid every two weeks on Friday,
and I need a report to figure my balance that includes only
transactions that are dated before the date of my next payday. Any
transactions that are dated on or after my next payday (ones I have
scheduled at my bank's website) I'd like to have NOT included in my
balance. Is there a way to do this? 15 6139
rinmanb70 <em**********@g mail.comwrote in
news:11******** **************@ p77g2000hsh.goo glegroups.com:
I use a db for keeping up with my checkbook and I'm having
trouble setting up a new functionality. I get paid every two
weeks on Friday, and I need a report to figure my balance that
includes only transactions that are dated before the date of
my next payday. Any transactions that are dated on or after
my next payday (ones I have scheduled at my bank's website)
I'd like to have NOT included in my balance. Is there a way
to do this?
yes, use the dateadd() function to add 14 days to the current
payday. Filter the query so that the transaction date
criteria is BETWEEN payday AND dateadd("d",14, payday).
payday could be a passed parameter or looked up
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
But how will it figure all upcoming paydays as time goes on?
rinmanb70 <em**********@g mail.comwrote in
news:11******** **************@ g4g2000hsf.goog legroups.com:
But how will it figure all upcoming paydays as time goes on?
You will have to tell it the paydays. Use the same dateadd function
to add two weeks to a known payday and store it in a table.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
I use this code now for my twice a month paydays. Is there not an
equivalent (simple) way for bi-weekly paydays?
If todays date was between the 1st and the 14th of the month, I need
transactions dated before the 15th to be included in my balance and
here's how I find them:
IIf([DateTransaction]<DateSerial(Yea r(Date()),Month (Date()),15)
And if today's date is between the 15th and the last day of the month,
I want the transactions dated before the first day of next month to be
included in my balance. Here's how I do it:
IIf([DateTransaction]<DateSerial(Yea r(Date()),Month (Date())+1,1)
rinmanb70 <em**********@g mail.comwrote in
news:11******** **************@ q69g2000hsb.goo glegroups.com:
I use this code now for my twice a month paydays. Is there
not an equivalent (simple) way for bi-weekly paydays?
If todays date was between the 1st and the 14th of the month,
I need transactions dated before the 15th to be included in my
balance and here's how I find them:
IIf([DateTransaction]<DateSerial(Yea r(Date()),Month (Date
()),15)
>
And if today's date is between the 15th and the last day of
the month, I want the transactions dated before the first day
of next month to be included in my balance. Here's how I do
it:
IIf([DateTransaction]<DateSerial(Yea r(Date()),Month (Date())+
1,1
)
It's not so simple for fized intervals between dates.
Somewhere, for bi-weekly paydays, you will need a reference
date. From that date, you can calculate every date that falls
15*N days after that date.
Store your reference date in a 1 column, 1 row table. Then you
need to determine the number of days between that date and the
current date. take the modulus 15 of that number, That is the
number of days since last payday. Subtract that from the current
date and you have the starting date of the current pay period.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
OK, thanks for the help.
I knew I'd have to somewhere reference the first payday date to begin
with, but I didn't know what form it should take.
I can set up a dedicated form with only one column and one record and
it will be the first payday date.
After that I'm afraid I don't understand what you're meaning.
Can you help me with "15*N" and "modulus 15" ?
Even though I don't understand these things right now, I'm encouraged
because it seems like you understand what I'm trying to do.
Thanks again...
I looked up modulus, so I think I'm beginning to understand that it
could used to find the number of days since my last paycheck. What is
the syntax for getting access to return a modulus? Can Access's
handling of rounding decimal numbers be set so that it would always
round up or down? Which way would I want it to be rounded for my
purpose?
I've done more now. I set up a simple report for testing. I'm using
DateDiff and then dividing the result by 14. However, it seems to
always round down to the nearest whole number instead of returning a
remainder. How can I get the remainder? I think I have an idea of
how to use the remainder to figure the number of days since the last
payday.
Success!
Here's how I did it:
Private Sub ReportHeader_Fo rmat(Cancel As Integer, FormatCount As
Integer)
Dim HardDate As Date
Dim NumberOfDaysSin ce As Integer
Dim modulus As Integer
Dim DaysToNext As Integer
Dim nextpayday As Date
DateToday = Date
HardDate = #5/9/2007#
NumberOfDaysSin ce = DateDiff("d", HardDate, DateToday)
modulus = NumberOfDaysSin ce Mod 14
DaysToNext = 14 - modulus
nextpayday = Date + DaysToNext
I'm pretty new to Access and VBA, so I'd love to hear any suggestions
you have on anything I should change or ways it could be better/best
practices, etc.
btw, thanks for your guidance. Your suggestion about finding the
modulus was THE simple solution I had been hoping for (people at
another forum were talking about embedding a dmax into a dateadd
statement and using a dedicated table of paydays...) I knew (hoped)
there'd be a better way. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DD |
last post by:
Hi Guys!
Just would like to share with you my experiense in this matter.
I was trying to evaluate how suitable Oracle OLAP for our
applications.
As probably you did, I have downloaded from OTN website OraJDeveloper
and BI Beans, installed them and opened Cube Viewer ... no luck! Just
did not work.
After very long conversation(s) with...
|
by: Danny J. Lesandrini |
last post by:
First, this is _not_ a question about how to get Crystal Reports to run
on a client machine. I've got all the merge modules added to the project
and it's working fine. The question is about distributing my .RPT files.
1) Initial Setup Project inclusion of .rpt files:
My folder of new .RPT files keeps growing. Is there a way to point
my...
|
by: Mike Conklin |
last post by:
This one really has me going. Probably something silly. I'm using
dcount for a report to determine the number of different types of
tests proctored in a semester.
My report is based on a parameter query which is the recordsource for
the report. The parameter is <=. The query returns the
correct amounts upto the date entered (no need for...
|
by: bthomas71chevy |
last post by:
I have just setup a WebServer and all the applications work fine, but
when every any of the applications try to generate a Crystal Report the
page errors out.
"File or assembly name CrystalKeyCodeLib, or one of its dependencies,
was not found."
I read that the 4 MSM files need to be moved to the a MERGE MODULES
folder in the Common Files...
|
by: Danny J. Lesandrini |
last post by:
Didn't get any takers on this post this morning at dotnet.General, so I'm
reposting here.
First, this is _not_ a question about how to get Crystal Reports to run
on a client machine. I've got all the merge modules added to the project
and it's working fine. The question is about distributing my .RPT files.
1) Initial Setup Project...
| |
by: T.J. |
last post by:
I have gotten great help here in the past, and after searching and
researching this error, I felt I would turn to the board and see if I could
come across any further assistance. Any advice will be greatly appreciated.
I have a VB.Net project that has a List Box Control that lists out all
Crystal Reports stored in the project's /bin folder...
|
by: lorirobn |
last post by:
Hi,
I have a report that works just fine.
Now I would like to add the capability to choose selection criteria to
limit what is displayed. I created several reports that do this, but
they used VBA to create SQL statements, then apply them. Now that I
have been using Access/VBA for awhile, I am wondering if there is a
simpler way to do...
|
by: steve |
last post by:
Hi All
I need to change text in a Report Viewer document at runtime
It is just the heading I want to change to match what the user has chosen as
the Report to view
How do I access the textbox in "GymMaster.Memberships.rdlc" (below) to
change the text
sql = "select * from members order by surname"
|
by: steve |
last post by:
Hi All
I have created rdlc files and when I load them into Report Viewer at run
time they appear OK
If I click on 'Print layout' button on Report Viewer the view again appears
acceptable
If I click on 'Page setup' button the margins left & right are not what I
set on the rdlc file at design time (1.5cm) they are 5.9mm
|
by: John Ling |
last post by:
Hello, I have been trying to install an application which requires Python:
http://chip.dfci.harvard.edu/~wli/MAT/
My environment is AIX 5.2. Below is the section of the setup that has
failed, which BTW works fine on Fedora 5.
I suspect it has to do with Python on AIX and/or the setup.py script.
Has anyone experienced this before?
...
|
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...
| |
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. ...
|
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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
| | |