title: How to use Microsoft Office Access's Subform control in a VB6 Form?
body: <p>I like the subform/subreport control in Access, and I want to put an instantce of the control on my VB6 form.</p>
  
  <p>I reference the msacc.olb in my VB6 project, and put the following codes in my form module.</p>
  
  <pre><code>Private Sub Form_Load()     
  Dim aa As Access.SubForm
  Set aa = Me.Controls.Add("Access.SubForm", "sf1")
  aa.Name = "vvvddvv"
  aa.Visible = True
  Debug.Print aa.Name, aa.Left    
  </code></pre>
  
  <p>End Sub</p>
  
  <p>I get a Run-time Error '711': Invalid Class String. Looking For Object with ProgId:Access.SubForm.</p>
  
  <p>How can I fix it? Or is there other approach which I can use the Access' SubForm control in a Vb6 form?</p>