Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Multiple Fields to Create Unique Key

Status
Not open for further replies.

dzdncnfsd

MIS
Joined
Jul 14, 2000
Messages
118
Location
US
I have two tables that I have to join in a query in order to create a printable customer payment history. They each have the same two fields that together make one unique value. Neither of the fields are indexed in either table, so when I join each field to its counterpart in the other table and run a query based on the combination, it takes forever to complete. I can't make changes to the underlying tables, or I would combine the two fields and create a key field. Does anyone have any suggestions?
Thanks for any help you can give me.
Gladys


Gladys Clemmer
gladys.clemmer@fifsg.com

 
If the tables aren't too large, perhaps importing them into Access, making temp tables of them and assigning index, and running the reports from there? I think it might take less time to perform and could be done with modules or macros.

HTH,
Drew
 
Thanks for the suggestion, but I don't think it will work because one of the tables is a linked SQL 7.0 table and gets over written every day with fresh data. I need to be able to do this in the existing query.
Thanks,
Gladys

Gladys Clemmer
gladys.clemmer@fifsg.com

 
The fix turned out to be simple. The problem was that I had set my joins incorrectly. Problem solved.%-)
Thanks.

Gladys Clemmer
gladys.clemmer@fifsg.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top