criteria to find percents

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a large amout of sales information that i have made in to a query
based report for a database im building. what im trying to do is have
everyting with a [Margin %] less than a % be pulled down to that report. the
trouble im having is i want the user to be able to define what % that is when
they open the report. (someone maybe looking for anything less than 35%,
where as another is looking for anything less than 45%)
i have tried <[Enter pct threshold] but that did not work. any other
suggestions. i am extreamly new at access any help would be great. thanks
 
Need a little more information as to what the margin is on. Post information
on your table structure - field names, datatype, etc. sample data.
 
Perhaps you are entering a whole number and expect that to be a
percentage? The percentage would normally be a fraction. One way to to
handle this if you are entering 35 and expect that to find 35% (0.35) is
to divide by 100

Field: Margin %
Criteria: <[Enter pct threshold]/100

A bit more robust is to test the value entered and then divide by 100 if
the entry is greater than 1.

<[Enter pct threshold]/ IIf([Enter pct threshold]>1,100,1)

If those both fail, try telling us a bit more detail about your field.
Is it a number field? What type of number field is it?

'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
 
thank you John S. the <[Enter pct threshold]/ IIf([Enter pct
threshold]>1,100,1)
worked. thanks so much for you help.

John Spencer said:
Perhaps you are entering a whole number and expect that to be a
percentage? The percentage would normally be a fraction. One way to to
handle this if you are entering 35 and expect that to find 35% (0.35) is
to divide by 100

Field: Margin %
Criteria: <[Enter pct threshold]/100

A bit more robust is to test the value entered and then divide by 100 if
the entry is greater than 1.

<[Enter pct threshold]/ IIf([Enter pct threshold]>1,100,1)

If those both fail, try telling us a bit more detail about your field.
Is it a number field? What type of number field is it?

'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================

i have a large amout of sales information that i have made in to a query
based report for a database im building. what im trying to do is have
everyting with a [Margin %] less than a % be pulled down to that report. the
trouble im having is i want the user to be able to define what % that is when
they open the report. (someone maybe looking for anything less than 35%,
where as another is looking for anything less than 45%)
i have tried <[Enter pct threshold] but that did not work. any other
suggestions. i am extreamly new at access any help would be great. thanks
 

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

Similar Threads

Formula help for percent 4
Percent help 3
Access Test if value is less than percent 0
Query Criteria 6
Access 2010 Report Button 0
Email 2
Excel conditional formatting with Weeknum 4
Any link between malware and scam calls? 2

Back
Top