title: Access - Get subForm datasheet value of row
body: <p>I have a subform which is created with textbox and some command button in the top of the window, so this will simulate like a Datagrid.</p>
  
  <p><img src="https://i.stack.imgur.com/dtG8z.png" alt="enter image description here"></p>
  
  <p>This is how it looks my datagrid when it fills from a Query.</p>
  
  <p><img src="https://i.stack.imgur.com/Hivt2.png" alt="enter image description here"></p>
  
  <p>What I want is when I select a row from my subform, I want to Click the button "Cambiar", and get the value of the machine selected.</p>