title: Ms ACCESS and SQL: round to two decimals through query
body: <p>I use queries to calculate all kinds of supplier information (average lead time, total spend for that supplier, average price, etc.). All output is shown in listboxes in forms in Ms ACCESS.</p>
  
  <p>Example of a calculated number:</p>
  
  <p><a href="https://i.stack.imgur.com/J5bcU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J5bcU.png" alt="enter image description here"></a></p>
  
  <p>How do I format the output of these queries to be rounded to two decimals? I've been playing around with the listbox settings but cannot find it there. I believe I will have to do it in the query itself, but I'm not sure how.</p>
  
  <p>Query code for the above number:</p>
  
  <pre><code>SELECT Avg([Item Master].PlannedLeadTime) AS AverageLeadTime
  FROM [Item Master]
  WHERE ((([Item Master].DateStamp)&gt;=[Forms]![History Supplier Tool]![List2] And ([Item Master].DateStamp)&lt;=[Forms]![History Supplier Tool]![List3]) AND (([Item Master].SupplierName)=[Forms]![History Supplier Tool]![List1]));
  </code></pre>
  
  <p>Note: List1 is a listbox where the user can select a certain supplier (for which the calculations are performed) and list2 and list3 are dates the user can select (as to determine a date range for the calculations).</p>