Ok what I want to do is I want to export data from two tables into one excel sheet but the tables have the same name and what i want is to export the information from the tables where the customer number is the same it must put the number and name from one table and the cash data from the other table with is specified between two dates in one excel sheet here is my code for selecting the data from one table between two dates:
mysql = "Select CustomerCode,Description,Date from HistoryLines where " & Chr$(34) & "Date" & Chr$(34) & " Between '" + txtFrom.Text + "' And '" + txtTo.Text + "'"
I need this to be modified to pull my requested data out of the Pervasive SQL database
mysql = "Select CustomerCode,Description,Date from HistoryLines where " & Chr$(34) & "Date" & Chr$(34) & " Between '" + txtFrom.Text + "' And '" + txtTo.Text + "'"
I need this to be modified to pull my requested data out of the Pervasive SQL database