title: How to open a URL from MS Access with parameters
body: <p>I have a basic MS Access application that has a button on a form that should open a webpage with the ID of the Access record as the parameter, but everything I have tried results either in an error by Access or only the base URL opening in the web page.</p>
  
  <p>I have tried adding VBA to the button's click event as so:</p>
  
  <pre><code>Application.FollowHyperlink _ 
  "http://example.com/index.php?r=controller/action&amp;id=" &amp; Me.ID 
  </code></pre>
  
  <p>but all I get is the base URL opening on the web browser (ie <a href="http://example.com" rel="noreferrer">http://example.com</a>).  If I remove the '?' and the '&amp;' from the full URL the button will open the browser with the full URL minus the '?' and the '&amp;', which of course errors the page. </p>
  
  <p>I have tried setting a hyperlink control's property as:</p>
  
  <pre><code>="http://example.com/index.php?r=controller/action&amp;id=" &amp; Me.ID
  </code></pre>
  
  <p>but it does the same thing as noted above.</p>
  
  <p>I have tried creating a Macro with the same results.  I have tried using the Hyperlink Builder and using <code>[formName]![id]</code> as the parameter but same thing happens or Access errors.</p>
  
  <p>I have read this article: <a href="https://msdn.microsoft.com/en-us/library/office/ff822080.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/office/ff822080.aspx</a> and tried adding the part in the URl after 'index.php/ to the ExtraInfo place in the code, but same thing.</p>
  
  <p>Help! It can't be that hard to simply have Access open a URL with a parameter on the end of the URL.</p>