Results 1 to 7 of 7
  1. #1
    BEI77 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    KY
    Posts
    24

    Using an Excel Formula in Access

    Hello, first time on forum and a novice in Access. We race stock cars and doing the chassis set up we rely on wheel weights telling us a lot about what to do to the car to make it better. I have an Excel formula that works great but I want to use it in my racing database. The formula works by telling it what the individual wheel weights are LF, LR, RF, RR and by entering the DESIRED CROSS WT. The result will tell you what each wheel should weigh. Please tell me where and how to use the following formula.



    =If(Q68<>0,M61-((Q68-Q66)/100*M65/2,"??"))) this gives me the desired weight for the left front wheel.

    Q68-DESIRED CROSS WT
    M61-CURRENT LEFT FRONT WT
    Q66-CURRENT CROSS WT
    M65-TOTAL CAR WT

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Are those the field names in your table? Use field names in place of the cell references. The function in Access is IIf().

    BTW, advise no spaces in naming convention.
    Also upper/lower case (camelback) would be easier to read: CurrentCrossWt
    Underscore is acceptable: Current_Cross_Wt

    If you keep the spaces, enclose field names in [].
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    BEI77 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    KY
    Posts
    24
    Thank you for the reply. Yes those are field names, and thanks on the naming.
    So do I put the formula in the table as a calculated field?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    I don't think calculated field in table will accept the IIf() function.

    Use the expression to create a field in query or use the expression in textbox on form or report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    BEI77 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    KY
    Posts
    24
    Ok, thanks, I'll try that.

  6. #6
    BEI77 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2014
    Location
    KY
    Posts
    24
    I tried the formula in a text box on the form and got #Name?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    The form must be bound to table or query that has those fields. Set the form RecordSource property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Anyone able to translate a formula from excel?
    By dniezby in forum Programming
    Replies: 10
    Last Post: 05-21-2013, 01:10 PM
  2. Replies: 1
    Last Post: 09-30-2012, 07:03 AM
  3. Excel Formula into Access Query
    By dr4ke in forum Queries
    Replies: 7
    Last Post: 06-25-2012, 06:46 AM
  4. Excel Formula Needed in Access
    By bmschaeffer in forum Queries
    Replies: 4
    Last Post: 01-18-2012, 01:13 PM
  5. Replies: 0
    Last Post: 09-03-2009, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums