Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Parameter would go in the WHERE CONDITION argument of the macro.

    As I said, how the report opens should have no bearing on the BMI calc.

    I manually calculated the BMI: 205*703/69^2 and get 30.3

    Height is a reserved word. Access is not liking the field name and is doing weird things. I changed the field name to HeightInches and now the BMI calculates properly.
    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.

  2. #17
    dilbert is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Aug 2010
    Posts
    21
    OK, I added this to the query, problem solved.

    ([Weight]*703)/([Height]^2) AS BMI

  3. #18
    dilbert is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Aug 2010
    Posts
    21
    You have been an amazing help, again. I don't know how to mark an answer as the best answer, but I think you summed it up in post #10 best.

    Thank you so very much!

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Good solution. I should have thought of.
    Edited my previous post. Might review again.
    Advise not to use reserved words as names for anything.
    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. #20
    dilbert is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Aug 2010
    Posts
    21
    Quote Originally Posted by June7 View Post
    Good solution. I should have thought of.
    Edited my previous post. Might review again.
    Advise not to use reserved words as names for anything.
    Thanks, I didn't realize Height was a reserved word.

    This has been fun, you are a great help.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 12-23-2015, 09:32 PM
  2. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  3. Replies: 1
    Last Post: 09-03-2014, 03:27 AM
  4. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  5. Replies: 11
    Last Post: 03-29-2012, 02:32 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