sum the currency sort

F

fishqqq

I have a form with two fields [sell rate] and [sell rate currency]
at the footer of the form i have two fields [total cdn] and [total usd]

Can someone show me the proper format for the control fields of [total
cdn] and [total usd] so that they sum all the [sell rate] for the
correct currency?

your suggestions are greatly appreciated.
 
M

Marshall Barton

I have a form with two fields [sell rate] and [sell rate currency]
at the footer of the form i have two fields [total cdn] and [total usd]

Can someone show me the proper format for the control fields of [total
cdn] and [total usd] so that they sum all the [sell rate] for the
correct currency?


If the [sell rate currency] field contains either "cdn" or
"usd", then you can use the [total cdn] text box can use the
expression:
=Sum(IIf([sell rate currency] = "cdn", [sell rate], 0))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top