Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - INSERT INTO SELECT AND WHERE
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

INSERT INTO SELECT AND WHERE

 Post Reply Post Reply
Author
fark View Drop Down
Newbie
Newbie


Joined: 04 November 2003
Location: United States
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote fark Quote  Post ReplyReply Direct Link To This Post Topic: INSERT INTO SELECT AND WHERE
    Posted: 14 November 2003 at 10:15am

I need to do this:

strsql="INSERT INTO tempUPS (ShpPrimary, m_amount, m_amountActual, m_serviceType) IN 'C:\Shipping Database\temp.mdb' SELECT m_primaryKey, m_amount, m_amountActual, m_serviceType  FROM calShipment, tempUPS WHERE tempUPS.PkgForeign = calShipment.m_foreignKey;"

The above statement gives this error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e37'

[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'tempUPS'. Make sure it exists and that its name is spelled correctly.

/ups.asp, line 22

How do I make sure that the Driver knows where to find the tempUPS table used in the first part of the INSERT Statement???  Thanks

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2003 at 11:33am
You need to connect to the database that has the table. And why do you open a new thred? You were discussing the same thing in your previous thread.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.