title: Getting a blank data report vb6
body: <p>I am new to vb6. I am working to create the invoice generation application. I am using data report to show the generated invoice.
  The step by step working of process is:</p>
  
  <p>Entering the data in to Invoice and ItemsInvoice  tables.
  Then getting the maxId using (Adodc) from the data base to show the last generated Invoice.</p>
  
  <p>Then passing the max Id as parameter to the data report which is showing the invoice according to the invoice id.</p>
  
  <p>It is working fine when I first time generate invoice. Now for 2nd invoice without closing application I am getting a blank data report. For data report I am using dataenvironment.</p>
  
  <p>I am guessing the reason the data report is blank is because there was no record for that Id, but actually the record is inserting in the database.</p>
  
  <p>What is going wrong?</p>