Re: Two tables in one report
You could try a Select query that brings all the fields you need, as :
Code:
SELECT Table1.Field1, Table1.Field2, Table1.Field3, Table2.Field1
FROM Table1
INNER JOIN Table2 ON Table2.Field0=Table1.Field0
ORDER BY Table1.Fieldx
Re: Two tables in one report
Thanks for the reply. tried it but not result. Any other clues. I am buffled. I have tried creating a new report to load to the form. I choosed a different way to find my database rather than using the dataset of vb. I used the ODBC/RDO to find my database and load it. All works fine. The preview boxes show the correct data and everythin is fine. When I try to load it it request a password and loginID. >???????? I never entered it one.The I made a new report with pass and id but still "logon failed". This is the code I have on form load to call and fill my reportviewer.
Quote:
CrystalReportViewer1.ReportSource = New CrystalReport4()
Re: Two tables in one report
I've never used Access 2007 (I think that's what you are using but have you tried Admin as the userid and no password?
Re: Two tables in one report
Yes I have done that. I cannot make it work. thank for the reply.. Any other ways I can do this? I have tried to use my dataset for the report but I encounter different problems there. The report does not work when I use fields from two tables. I have tried using other connection options to connect to the db but no success. When I try to add database in one of the options available it does find the 2007 db but finds only a 2003 version of it that I used in the past. Crystal reports has problems with access 2007?