Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to access multiple databases by Crystal Report

How to access multiple databases by Crystal Report

How to access multiple databases by Crystal Report

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.
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.

RE: How to access multiple databases by Crystal Report

You can't use links to append one table onto the end of the others.  Linking adds more columns to your report, not rows.

You will need subreports to display the data from the other two tables, and they will print separately in your output.

The only other option would be to use FoxPro (or another database tool) to append these tables into one table.

Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close