473,508 Members | 4,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with funtion (expression builder)

DP
hi,

i have a form, which shows rentals of a film. a rental; has a price code
attached to it,. e.g. a = £3.00. b = £3.50, etc...

i've got a form, with a subform at the bottom.

how can i create a field in the normal form, showing the total amount due.
I've got a text and a label.

i've got this forumula.;

=[Game Orders Subform1].Form!Price

which shows only £2.00, which is the cost of 1 of the items, how do i get it
to add all the items up, and show that, e.g. it should show £4.00,. as there
are 2 items costing £2 each

thanx

devin
Jan 5 '06 #1
3 1368
Going from memory- the easiest way to do this is to put the total in
the form footer of the subform and have this be hidden.

On the subform put a field called InvoiceTotal with a formula something
like this:
=Sum(Price)

make sure that works, then set its visible property to false.

Then on the main form put a field with formula
=[Game Orders Subform1].InvoiceTotal

I believe this should work. Lemme know
Ken

Jan 5 '06 #2
DP
yo

that worked, but i had to put it in the actual query.
thanx anywayz.

if i had an customer, rental table, and film rental table.
and forms for each one,
when a customer rents a film, how would i stop the user, from entering the
same film id twice? (because if a film is out on rent, it cant be rented to
someone else at the same time) it cant be rented till it has came back. how
would i implement this kind of validation?
devin

"Ken Post" <nn*******@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Going from memory- the easiest way to do this is to put the total in
the form footer of the subform and have this be hidden.

On the subform put a field called InvoiceTotal with a formula something
like this:
=Sum(Price)

make sure that works, then set its visible property to false.

Then on the main form put a field with formula
=[Game Orders Subform1].InvoiceTotal

I believe this should work. Lemme know
Ken

Jan 5 '06 #3
Simplest way would probably be to use a boolean field to track if the
item is available or not.

Jan 5 '06 #4

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

Similar topics

6
5647
by: Danny | last post by:
I need an asp command to strip out from a string all extra punctuation such as apostrophe, comma, period, spaces dashes, etc etc and just leave the letters. Can anybody give me some ideas? ...
3
2000
by: Tom | last post by:
I have struggled with the issue of whether or not to use Regular Expressions for a long time now, and after implementing many text manipulating solutions both ways, I've found that writing...
17
1928
by: the other john | last post by:
This should be fairly basic but I can't think of how to do this and I'm running out of time! I am developing a picture gallery and I can't figure out how to select "one" picture from each...
1
3793
by: Grant Hammond | last post by:
I assume I'm not alone in my frustration that the expression builder that comes (in part) with Access XP that dosnt wrap text when you open it on an exisitng expression in a query or form. I's...
1
2529
by: Laertes | last post by:
Hi, I want to use the expression builder in a query to define a field. I know how to do it for simple fields, like the one below : orderdate: IIf((IsNull() And =False) Or (<>"N/A" And...
2
7316
by: Mike Turco | last post by:
I like using the expression builder for a lot of different things but it isn't always available when I want to use it, for example in the code window, or in all of the control properties. I am...
1
1712
by: Don | last post by:
I'm trying to build a simple report. It will show debtors, budgeted amounts and how much was actually paid to those debtors. I've tried using the expression builder, though I've never used it...
0
2463
by: AlexanderTodorovic | last post by:
Hello Everyone, I'm developing a client application in which the users need an expression builder as provided in MS Access 2003. I would like to use the expression builder in a C# application....
3
10358
by: rrosynek | last post by:
I have a 2003 Access Database with several tables related in a one to many relationship with a parent I am looking to build a report which evaluates if different users of the table have all entered...
2
2587
by: Spitfire999 | last post by:
Hey Everyone, So I am completely new to Access. I have never used it befor in my life (however i am somewhat familiar with SQL). I got thrown into an internship which involves using access (they...
0
7228
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
7128
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
7332
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
7393
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
7502
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
5635
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,...
1
5057
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
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.