Hi Geir
as well as what Keith has already said, if you are looking at automating,
you can use VBA to open the excel document and read the data in from the
sheet. You could then automatically make the changes as your streaming the
data in, or read it to a temporary table and process the data afterwards,
plenty of choices...
If you are reasonable OK with VBA, its not difficult to do, and I can paste
you some bits of code to help you on your way.
let us know
Andy
"Keith Wilby" <ke*********@AwayWithYerCrap.com> wrote in message
news:Xn************************@10.15.188.42...
ge***********@hotmail.com (Geir Baardsen) wrote:
The items in MyAccess.db (tblItems) are like: OIL hy-123456789
and the items in NewPrices.xls are like: OIL 123456789.
(The "hy" is for separating different items with different values)
How can I write some code to import data from NewPrices.xls (about
5000 items!), have them identify same items in MyAccess.mdb and update
each item with new prices?
Does the process need to be automated? If not, one approach would be to
import the data 'as is' and then do a 'replace' on the field inquestion,
replacing " " with "-". You can then join the two recordsets in a query
and
update as necessary.
Seems too simple ... were you looking for an automated solution?
Regards,
Keith.
www.keithwilby.com