Hi all,
1) May some pls tell what's wrong with this coding as the system prompt me for a syntax error.
I'm trying to link my recordset to the data report for printing.
VB Code:
Private Sub CmdPrint_Click() Call connectDB sql = "SELECT distinct * FROM Invoice WHERE Invoice='" rs.Open sql, cn, adOpenStatic, adLockOptimistic Set InvoiceReciept.DataSource = rs InvoiceReciept.Show End Sub
2) Can a data report be used to linke differnt fields together? For example, CustID from customer table, Invoiceid from invoice table and CarID from Car Table. Is it possible?




Reply With Quote