To do a report on all appointments (using Crystal Reports) for Goldmine 6.5 dBase, I am using the following sql query within an Access database that has CAL, CONTHIST and CONTACT1 as linked tables.
SELECT Cal.CREATEON, Contact1.COMPANY, Contact1.Contact, Cal.ONDATE, Cal.ONTIME, Cal.DURATION, Cal.ACTVCODE, Cal.REF, Cal.USERID
FROM Cal INNER JOIN Contact1 ON Cal.ACCOUNTNO=Contact1.ACCOUNTNO
WHERE (((Cal.RECTYPE)="A"));
UNION SELECT Conthist.CREATEON, Contact1.COMPANY, Contact1.Contact, ContHist.ONDATE, ContHist.ONTIME, ContHist.DURATION, ContHist.ACTVCODE, ContHist.REF, ContHist.USERID
FROM ContHist INNER JOIN Contact1 ON ContHist.ACCOUNTNO = Contact1.ACCOUNTNO
WHERE (((ContHist.RECTYPE)="A"));
When I run this in Crystal it works ok but when I run the report from within Goldmine I get an "Unsupported table" error. After some investigation I have determined that this error will occur whenever you use a query on linked tables within Access. (Note that the SQL UNION query within Access was the only way I could find of getting all appointment records from both the CAL and CONTHIST databases.)
Many thanks for any suggestions on getting this working within Goldmine or for an alternative solution.
Seamus
SELECT Cal.CREATEON, Contact1.COMPANY, Contact1.Contact, Cal.ONDATE, Cal.ONTIME, Cal.DURATION, Cal.ACTVCODE, Cal.REF, Cal.USERID
FROM Cal INNER JOIN Contact1 ON Cal.ACCOUNTNO=Contact1.ACCOUNTNO
WHERE (((Cal.RECTYPE)="A"));
UNION SELECT Conthist.CREATEON, Contact1.COMPANY, Contact1.Contact, ContHist.ONDATE, ContHist.ONTIME, ContHist.DURATION, ContHist.ACTVCODE, ContHist.REF, ContHist.USERID
FROM ContHist INNER JOIN Contact1 ON ContHist.ACCOUNTNO = Contact1.ACCOUNTNO
WHERE (((ContHist.RECTYPE)="A"));
When I run this in Crystal it works ok but when I run the report from within Goldmine I get an "Unsupported table" error. After some investigation I have determined that this error will occur whenever you use a query on linked tables within Access. (Note that the SQL UNION query within Access was the only way I could find of getting all appointment records from both the CAL and CONTHIST databases.)
Many thanks for any suggestions on getting this working within Goldmine or for an alternative solution.
Seamus