Query with compound joins

J

JimS

I am importing a table from another app. It is passed as an excel
spreadsheet. I have a routine that "cleans up" the sheet, then imports it
into a temp table. Then, I need to match it with an existing table to either
append new records or update existing ones... It's a compund key. To make
things worse, Excel insists one of the columns is numeric, even though I want
it to be seen as text.

I could set the resident table to have this key as a unique compound index
and just do an insert, letting all dups be "errored out". I suppose this is
the best way. But I started by setting up a simple block of code that would
rifle through the import table, matching with the resident table, and either
inserting or updating it as it goes. But ADO won't accept a compound
(multi-column) argument for its "find" method.

How does everyone else get around this?
 
M

MGFoster

JimS said:
I am importing a table from another app. It is passed as an excel
spreadsheet. I have a routine that "cleans up" the sheet, then imports it
into a temp table. Then, I need to match it with an existing table to either
append new records or update existing ones... It's a compund key. To make
things worse, Excel insists one of the columns is numeric, even though I want
it to be seen as text.

I could set the resident table to have this key as a unique compound index
and just do an insert, letting all dups be "errored out". I suppose this is
the best way. But I started by setting up a simple block of code that would
rifle through the import table, matching with the resident table, and either
inserting or updating it as it goes. But ADO won't accept a compound
(multi-column) argument for its "find" method.

How does everyone else get around this?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To import a numeric Excel column as Text put some alphabetic characters
at the top of the Excel column. Access will identify the column as a
Text column.

HTH,
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBSqk8HYechKqOuFEgEQJr6QCggiZ+83W6GIRweZWRJoD9YkY+h0IAoOFN
eMwu1d6/d+3f2gZf5/KXmuZn
=7YWd
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top