UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> can I make unbound fields do math?    
 
   
Stellae
post Dec 21 2007, 12:06 PM
Post #1

New Member
Posts: 16



I built an order form for my company in Forms ( here's a screenshot of it in design view) and I need to write a simple expression to total up the price in each row. I don't need the information saved anywhere so I left the fields unbound, but is it even possible to write expressions for unbound fields? I just need the quantity row * the price each row so I get a total. I know how to get it to work with the fields linked to tables with a relationship but if I do that the form looks messy, and we need this to send out to customers. Any thoughts?

Edited by: Stellae on Fri Dec 21 12:28:33 EST 2007.
Go to the top of the page
 
+
 
Start new topic
Replies (1 - 4)
fkegley
post Dec 21 2007, 01:07 PM
Post #2

UtterAccess VIP
Posts: 23,583
From: Mississippi



Yes, just set the control source of the unbound control to the calculation you want it to perform.

For instance

=[Quantity] * [Price]

where [Quantity] and [Price] are controls on the form.
Go to the top of the page
 
+
Stellae
post Dec 21 2007, 01:39 PM
Post #3

New Member
Posts: 16



I made the first quantity box "qty1" and the first price box "price1" and in the total box wrote =([qty1]*[price1]). but I just get the "#Name?" error message
Go to the top of the page
 
+
fkegley
post Dec 21 2007, 03:49 PM
Post #4

UtterAccess VIP
Posts: 23,583
From: Mississippi



Are qty1 and price1 the names of the controls on the form?
Go to the top of the page
 
+
bob2119
post Jul 7 2009, 06:26 PM
Post #5

New Member
Posts: 2
From: BC



QUOTE
I made the first quantity box "qty1" and the first price box "price1" and in the total box wrote =([qty1]*[price1]). but I just get the "#Name?" error message


I get the same #name? in my unboudn text field
me.sdescription= "plane description" doesn't work
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th May 2013 - 03:15 AM