title: How to Select All Text in TextBox After textBox.Setfocus Using Access VBA
body: <p>I need to select all the text in a textbox of an Access form when I click (or double click) into it. i tried the following code, unsuccessfully:</p>
  
  <pre><code>Me.txt_CompraPreco.SelStart = 0
  Me.txt_CompraPreco.SelLength = Len(Me.txt_CompraPreco)
  </code></pre>
  
  <p>thanks in advance.</p>