473,413 Members | 1,801 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,413 software developers and data experts.

Help with automaticallly adding weekly charge

How can I automatically add a weekly charge of $2.00 for each client
in drug treatment? I have a "financial" table linked with the client
table with 4 fields: clientID, date, charge, paid. Every week,
clients are to pay $2.00. how can I automatically add this weekly fee
for 167 clients? The form and report does the balance amount.

clientID: 1234

Date charge paid balance
02/01/04 2.00 2.00
02/03/04 2.00 .00
02/08/04 2.00 2.00
02/15/04 2.00 4.00
02/17/04 1.00 3.00
02/21/04 2.00 5.00

I need ACCESS to automatically put in the $2.00 charge each week for
all clients.

Thanks.

Charlie Rouse
Nov 12 '05 #1
2 1698
If you are using "Date" as the name of the date field, you need to change it to
another name. "Date' is a reserved word and sooner or later using it for a field
name will cause you trouble.

To answer your question ---
Assuming all the clients in your client table will be assessed the $2 fee, make
a query based on the client table. Make the following fields in your query:
ClientID
ChargeDate:Date()
Charge:2

Convert this query to an append query and set to append to your financial table.
Run the query and you will assess all the clients a $2 fee for today's date.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Charles Rouse" <co****@aol.com> wrote in message
news:c5**************************@posting.google.c om...
How can I automatically add a weekly charge of $2.00 for each client
in drug treatment? I have a "financial" table linked with the client
table with 4 fields: clientID, date, charge, paid. Every week,
clients are to pay $2.00. how can I automatically add this weekly fee
for 167 clients? The form and report does the balance amount.

clientID: 1234

Date charge paid balance
02/01/04 2.00 2.00
02/03/04 2.00 .00
02/08/04 2.00 2.00
02/15/04 2.00 4.00
02/17/04 1.00 3.00
02/21/04 2.00 5.00

I need ACCESS to automatically put in the $2.00 charge each week for
all clients.

Thanks.

Charlie Rouse

Nov 12 '05 #2
Charles Rouse,
"INSERT INTO FINANCIAL_TBL ( CLIENT, BILL_DATE, FEE )
SELECT CLIENT_TBL.ID, Date() AS BILL_DATE, 2 AS FEE
FROM CLIENT_TBL;"
Because you can include constants, functions & such in the SQL SELECT which
gives you your list of clients that incurred fees.

"Charles Rouse" <co****@aol.com> wrote in message
news:c5**************************@posting.google.c om...
How can I automatically add a weekly charge of $2.00 for each client
in drug treatment? I have a "financial" table linked with the client
table with 4 fields: clientID, date, charge, paid. Every week,
clients are to pay $2.00. how can I automatically add this weekly fee
for 167 clients? The form and report does the balance amount.

clientID: 1234

Date charge paid balance
02/01/04 2.00 2.00
02/03/04 2.00 .00
02/08/04 2.00 2.00
02/15/04 2.00 4.00
02/17/04 1.00 3.00
02/21/04 2.00 5.00

I need ACCESS to automatically put in the $2.00 charge each week for
all clients.

Thanks.

Charlie Rouse

Nov 12 '05 #3

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

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
0
by: Peter Otten | last post by:
QOTW: "So I better start practice my throwing, and Dan better start practice his ducking. ;-)" -- Guido van Rossum using his time-machine for a preview on the Pie-thon at Oscon 2004. "Anytime...
0
by: Peter Otten | last post by:
QOTW: "So I better start practice my throwing, and Dan better start practice his ducking. ;-)" -- Guido van Rossum using his time-machine for a preview on the Pie-thon at Oscon 2004. "Anytime...
3
by: CrystalDBA | last post by:
I am using SQL Server 2000. I need to query my database for all the contracts that came in during a certain time frame (user is prompted for reportingperiodid). Table - Periods Fields -...
2
by: Quansheng Liang | last post by:
Hello, I struggled with the problem of "undefined reference to `vtable ...`" while migrating a project from windows to linux. After searching the google I removed all the inline functions and now...
3
by: Robin Thomas | last post by:
I am fairly new to ASP.NET so I think I am missing something fundamental. Anyway, quite often I am pulling data from a database, but then I need to use that data to produce more data. A simple...
22
by: Drum2001 | last post by:
I have a table that tracks employee times. I have a column (Date/Time). Users, through a form, enter how long it takes them to complete a task. For example, 03:45 = 3 hours and 45 mins. I am...
4
by: tfhanson | last post by:
Hi, been a real long time since I have worked in ASP and XML and a neighbor asked me to help him with a web page. I have an XML file that I am trying to search thru and display the children...
7
by: bhipwell via AccessMonster.com | last post by:
Hello, I have developed an employee benefits database that currently contains over 3000 employees and 70+ companies. Having started the database as a really simple solution for our clients, the...
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
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...
0
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,...
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
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: 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...

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.