Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    EricRex is offline Advanced Beginner
    Windows 11 Access 2021
    Join Date
    May 2024
    Location
    Colorado
    Posts
    85

    Solved my own problem from Google hints.

    My values weren't being rounded in the form because they were being treated as strings, which is bizarre because they're all aggregate values coming straight from the Saved Parameter Query. I suppose they're treated as Variant in VBA and the form doesn't care what it is?

    Anyway, changed the population equation to = CSng(.Fields(fieldnum).value) and it works like a charm.

    Thanks for the hint!

    I did wonder about your comment on saving 20-30% of the calculations without the Round. Thinking that the Round still must be performed, but it's done by the Form instead of the Query. Can't imagine there's a big time differential between those two. I would hope both are super optimized and computationally cheap.

    Cheers,
    Eric

  2. #17
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    No need for .value as it is the default property

  3. #18
    EricRex is offline Advanced Beginner
    Windows 11 Access 2021
    Join Date
    May 2024
    Location
    Colorado
    Posts
    85
    Quote Originally Posted by CJ_London View Post

    Not sure where you get stDevP from - perhaps a later version of Access or you have a public function, I only have stDev
    I'm using Access 2021 Desktop version.

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

Similar Threads

  1. Query with multiple and clauses
    By Abena in forum Queries
    Replies: 2
    Last Post: 08-08-2018, 11:25 AM
  2. 5 if clauses
    By niklassbordone in forum Access
    Replies: 2
    Last Post: 02-08-2018, 06:34 PM
  3. Replies: 4
    Last Post: 08-17-2015, 10:04 AM
  4. Creating an SQL query with AND and Or clauses.
    By Johanb26 in forum Queries
    Replies: 2
    Last Post: 07-08-2015, 05:30 AM
  5. Determining Winners/Losers
    By pfeff in forum Queries
    Replies: 0
    Last Post: 02-21-2008, 03:46 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