raphealchan
IS-IT--Management
I am trying to use Crystal Report 8.0 to extract data from different database. Here is my database:
CSHDR.DBF (foxpro 2.6a)
use Invoice No. as Index (CS12345.CS...)
Data Field: Invoice No., Date, Amount...
DSHDR.dbf (foxpro 2.6a)
use Invoice No. as Index (DS12345.DS..)
Data Field: Invoice, Date, Amount
REHDR.DBF (foxpro 2.6a)
use Invoice No. as Index (RE12345. RE...)
Data Field: Invoice, Date, Amount
the invoice no. in CSHDR can link to the invoice no. in DSHDR and REHDR. However, the no. is totally different.
Question:
How are I choose all the data from all files for a period of time. e.g. I want to select the data range from 1/8/2001-5/08/2001), i.e.
Date CSHDR.inv CShdr.amt DShdr.inv DShdr.amt REhdr.inv REhdr.amt
01/08/2001 CS123 $125 DS124 $10 RE65 $65
02/08/2001 CS124 $100
03/08/2001 CS125 $56 DS56 $6
03/08/2001 CS126 $99 RE47 $85
The problem is I don't know how to link up all the tables and if I select a specific range of date from CSHDR, the data in DS and RE will not come out because the invoice no in RE and DE is different. Please help.
CSHDR.DBF (foxpro 2.6a)
use Invoice No. as Index (CS12345.CS...)
Data Field: Invoice No., Date, Amount...
DSHDR.dbf (foxpro 2.6a)
use Invoice No. as Index (DS12345.DS..)
Data Field: Invoice, Date, Amount
REHDR.DBF (foxpro 2.6a)
use Invoice No. as Index (RE12345. RE...)
Data Field: Invoice, Date, Amount
the invoice no. in CSHDR can link to the invoice no. in DSHDR and REHDR. However, the no. is totally different.
Question:
How are I choose all the data from all files for a period of time. e.g. I want to select the data range from 1/8/2001-5/08/2001), i.e.
Date CSHDR.inv CShdr.amt DShdr.inv DShdr.amt REhdr.inv REhdr.amt
01/08/2001 CS123 $125 DS124 $10 RE65 $65
02/08/2001 CS124 $100
03/08/2001 CS125 $56 DS56 $6
03/08/2001 CS126 $99 RE47 $85
The problem is I don't know how to link up all the tables and if I select a specific range of date from CSHDR, the data in DS and RE will not come out because the invoice no in RE and DE is different. Please help.