Results 1 to 12 of 12
  1. #1
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179

    Temperature, Humidity, Pressure

    Hello,

    On my AFRs Form and Tear Down Report I would like to display:



    Temperature:
    75
    Humidity:
    35% RH
    Pressure:
    29.95 Hg


    Does anyone know how to do this please? Does the source table need to be formatted?

    I appreciate any help

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742
    Here's a way. Example if for Humidity, you can figure out the others...
    Code:
    SELECT AFRs.*, AFRsParts.ID, AFRsParts.AFRsID AS AFRsID_AFRsParts, AFRsParts.Qty, AFRsParts.[Part Number], AFRsParts.[PO #], (Humidity*100) & "% RH" AS DHumidity FROM AFRs INNER JOIN AFRsParts ON AFRs.AFRsID = AFRsParts.AFRsID; 
    Click image for larger version. 

Name:	form.png 
Views:	17 
Size:	14.5 KB 
ID:	38574

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    You can set the control source of the field = Temperature & "F" or =Temperature & "F"

    you can do the same thing for the other fields

    =Humidity & "% RH"

    etc just remember to change the name of the control from temperature to temperaturex or something or it'll get confused and throw an error. Not sure how to get the degree symbol in there, I'm still looking at that part.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Ok found it, for your degree symbol you want something like

    =Temperature & "°F"

    to get the degree symbol hold down your alt key and use the NUMERIC KEY PAD to type in 248

    ALT-248 will give you the degree symbol

  5. #5
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Thank you I will give it a go.

  6. #6
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    I changed the control source on the form and get a number type error.

    OOPS I forgot to change the name.

    I think it works great thank you.

  7. #7
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    My Humidity numbers are like 0.24 which should be 24.0 "Percent symbol" "RH"

    How can this be done?

  8. #8
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    NOTE: The entries should be 24.0 as they type

  9. #9
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    =format([humidity], "Percent") & " RH"

  10. #10
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    I now get 24.00% RH

    How to ?

    24.0 % RH


    I must be missing how to get the space and only one decimal place

  11. #11
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    =format([humidity] * 100, "00.0") & " % RH"

  12. #12
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    That is perfect thank you

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

Similar Threads

  1. Replies: 2
    Last Post: 04-29-2016, 03:17 PM
  2. Replies: 5
    Last Post: 03-25-2012, 03:27 AM
  3. Help! Newbie to Access under pressure
    By ritch in forum Access
    Replies: 8
    Last Post: 01-18-2010, 01:20 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