title: What are the best tools for optimizing queries in VBA and why?
body: <p>I'm fairly new to programming and I was wondering; What are the best ways to time and optimize my code? The code I'm currently wanting to time is a series of queries in VBA for MS-Access, but I would also like to time code in VB.NET and ASP.NET as well. </p>
  
  <p>So to reiterate, what is the best way to time code and optimize it for each language?</p>
  
  <p>Please give reasons and explanations to help me understand how to do it. </p>
  
  <p>Thanks in advance. </p>