title: Wrting to an existing csv file with access vba
body: <p>I would like to write some data to a csv file. I am using this code:</p>
  
  <pre><code> Dim Filename As String, line As String
      Dim A As Integer
      Filename = "D:" &amp; "\testfile.csv"
      Open Filename For Output As #1
      For A = 1 To 100
      Print #1, "test, test, test"
      Next A
      Close #1
  </code></pre>
  
  <p>but the problem is, that this code rewrite  this cvs file from the beginning. but I would like to add data at the end of csv file ( For example if I run this code three times, I would like to have 300 lines in this csv file)</p>
  
  <p>what should I do?</p>