MS Access
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsDatabasesMS Access

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 3rd, 2008, 03:49 PM
dekethegeek dekethegeek is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 dekethegeek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 55 sec
Reputation Power: 0
Exclamation Restricted range of calculations in form

I am working on a new Access DB application and am having difficulty with one part; I have a form with several calculations that are computed on the fly. One of the calculation's solution must fall within a certain range of numbers. In this case it is between 0 and 50.

Logic= IF n > 50 then n = 50
OR n<0 then n = 0
Else n = n



Here is the formula I have at the moment:

=IIf(([85th % Speed]-[Speed Limit])*3.3>0 And ([85th % Speed]-[Speed Limit])*3.3<50,([85th % Speed]-[Speed Limit])*3.3,50)

The data that the fields hold is inputed by the user in a form that is tied to individual records in a table. The inputed data is not stored in the table, but instead exported to printable reports if the desire is there.

I am not a programmer by any means (mostly a web developer and network admin by trade), so I have no real skills in VB. I figure there is a way to do an If Then Else statement to do this, but I am not sure. Any help would be greatly appreciated.

Reply With Quote
Reply

Viewing: Tutorialized ForumsDatabasesMS Access > Restricted range of calculations in form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway