Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 2nd, 2008, 10:59 AM
Registered User
 
Join Date: Jul 2008
Location: Forney, Tx, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formulas

I need some help as I am working on an incentive database. The problem I am having is how to do the formulas.



In excel spreadsheet it would be this

=if((e8>=10),E8*15,0).



This is what I have in Access (in a query)

New Account Production:iif(( [TotalNewAccts]>=10[TotalNewAccts] *15,0)



Is this correct? I need help???




Reply With Quote
  #2 (permalink)  
Old July 2nd, 2008, 11:29 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Is this working for you? You are missing a comma, though:

New Account Production:iif(( [TotalNewAccts]>=10,[TotalNewAccts] *15,0)

Did you get an error when you typed in the formula?

mmcdonal

Look it up at: http://wrox.books24x7.com
Reply With Quote
  #3 (permalink)  
Old July 2nd, 2008, 12:03 PM
Registered User
 
Join Date: Jul 2008
Location: Forney, Tx, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, its not working for me. Here is the first error.

The expression you entered contains invalid syntax
You may have entered an operand without an operator.

error with the comma.

The expression you entered is missing a closing parenthesis, bracket ( ] ) , or vertical bar ( I )


Reply With Quote
  #4 (permalink)  
Old July 2nd, 2008, 01:51 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

How about:

New Account Production:iif([TotalNewAccts]>=10,([TotalNewAccts] *15),0)



mmcdonal

Look it up at: http://wrox.books24x7.com
Reply With Quote
  #5 (permalink)  
Old July 2nd, 2008, 02:04 PM
Registered User
 
Join Date: Jul 2008
Location: Forney, Tx, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas work in preview not online andiadmin Infopath 0 April 16th, 2007 12:01 PM
Need help with time formulas pfreire727 Excel VBA 1 February 12th, 2006 07:41 PM
Formulas Change When Macro Runs maaron Excel VBA 2 June 20th, 2005 05:09 AM
Inputbox and Formulas bahachin Excel VBA 3 February 17th, 2005 01:39 AM



All times are GMT -4. The time now is 06:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.