473,396 Members | 1,814 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.

Access noob - Multiply Checkboxes

Hi there, I have got a databse (part of school coursework). It's for monitoring Piano Lessons i.e. schedules and students progression etc.

The problem I am having is that...

For each student in my tblLessonSchedule there is a checkbox for 'attended lesson' and a checkbox for 'paid for lesson'. Now using either a report or querry whichever is easier I need the database to find out how often each student has attended a piano lesson but not paid.

Each lesson should cost £7 so if a student attends 15 lessons over a period of 6 months but doesnt pay for 3. Then I need the database to work this out and muliply the amount of unpaid lessons by 7 to give me a total amount owed.

Thanks for any help in advance.

Kind regards.
Mar 22 '07 #1
7 1404
Would it be best to use a query or a report guys? This is to difficult I might go down the pub :P
Mar 22 '07 #2
Rabbit
12,516 Expert Mod 8TB
Would it be best to use a query or a report guys? This is to difficult I might go down the pub :P
You would do this with a query as a report is based on a table or a query. So you could make a query and make it look nice with a report but you would never use a report to calculate the data you want.
Mar 23 '07 #3
You would do this with a query as a report is based on a table or a query. So you could make a query and make it look nice with a report but you would never use a report to calculate the data you want.
Ok then, thats a start. Thanks very much. But how will I actualy go about doing what I asked at the begining?
Mar 23 '07 #4
Rabbit
12,516 Expert Mod 8TB
Ok then, thats a start. Thanks very much. But how will I actualy go about doing what I asked at the begining?
Have you attempted to solve the problem yourself yet? What part are you getting stuck at?
Mar 23 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Hi there, I have got a databse (part of school coursework). It's for monitoring Piano Lessons i.e. schedules and students progression etc.

The problem I am having is that...

For each student in my tblLessonSchedule there is a checkbox for 'attended lesson' and a checkbox for 'paid for lesson'. Now using either a report or querry whichever is easier I need the database to find out how often each student has attended a piano lesson but not paid.
You need to set the criteria for [attended lesson] = -1 and [paid for lesson] = 0

Each lesson should cost £7 so if a student attends 15 lessons over a period of 6 months but doesnt pay for 3. Then I need the database to work this out and muliply the amount of unpaid lessons by 7 to give me a total amount owed.
You will need to do this with a separate query based on the first query.

Group by the student and get count of [attended lesson] and multiply result by 7.
Mar 25 '07 #6
I have attempted this myself but my IT teacher at school has been off ill for a couple of months and my class hasnt had any help from an IT trained teacher for ages - we are all doing different databases so it's difficult to help eachother. Thanks for the help I will give it a go, problem is I'm still trying to get my hear round it all.
Mar 26 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
I have attempted this myself but my IT teacher at school has been off ill for a couple of months and my class hasnt had any help from an IT trained teacher for ages - we are all doing different databases so it's difficult to help eachother. Thanks for the help I will give it a go, problem is I'm still trying to get my hear round it all.
Let me know if you get stuck. Also if reposting change the query view to SQL and copy and paste in the SQL code of the query. It makes it easier for us to see what's going on.

Mary
Mar 26 '07 #8

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

Similar topics

2
by: dusty | last post by:
I am learning Python and Qt designer (using eric3). I'm writing an app using QCheckList and have succeeded in loading parent and children, with checkboxes, with data from a file. I want to...
3
by: David Gonneau | last post by:
I'm getting an incredible behaviour of internet explorer. I have a generated html page with one form and many input of checkbox type. Those checkbox are grouped in 4 lists and each list of...
9
by: Frances | last post by:
Hi All, * PREMISE * I'm creating an Access form with 150 items subdivided into 20 categories. Multiple categories (and items) can be selected so my user wants checkboxes. All of the options...
7
by: Bill Carson | last post by:
If anyone can help: I just created a data base in MS ACCESS, which is very basic. Its a list of users eg. names addresses etc. However on this list is 6 columns with checkboxes, the boxes...
3
by: icsupt via AccessMonster.com | last post by:
I would like to send an email from Access. I copied the code from another free website, but it does not do everything I need it to do. I have a series of checkboxes: checkbox1 - when checked,...
12
by: Tobias Froehlich | last post by:
Hi, I have a form called form1 on which there are a lot of checkBoxes (they form a 8x6 field). I'd like to create a class in a seperate .cs file which gives some control over these checkBoxes...
2
by: trank | last post by:
I created some checkboxes(<input type=checkbox>) dynamically,and then I'd like to access these checkboxes in code behind using C#. For they are not standard controls like Windows Checkbox, I can't...
1
by: prash.marne | last post by:
hi , i am having a simple form ----------------------------------------------------------------------- ----------------------------------------------------------------------- --------------...
18
by: Ixiaus | last post by:
I have recently (today) just started learning/playing with Python. So far I am excited and impressed (coming from PHP background). I have a few questions regarding Python behavior... val =...
14
by: dragon52 | last post by:
Hi Everyone, Not sure the following is possible to do. The standard MS Access user interface has checkboxes on a number of menu pages, such as Tools/Options/View. I have been asked to find a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.