Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Insert rows from store procedure


Message #1 by "Glen Yagami" <glenyagami@y...> on Wed, 18 Dec 2002 05:26:15
I want to insert the resulting rows of a store procedure to a new table 
but the code returns "Invalid object name 'sprTour'". I've changed the 
CommandType but it just returns another error message.

With cmd1
   .ActiveConnection = CurrentProject.Connection
   .CommandType = adCmdText
   .CommandText = "select tourcode into someNewTable from sprTour"
   .Execute
End With

Thanks
Glen
Message #2 by "Haslett, Andrew" <andrew.haslett@i...> on Wed, 18 Dec 2002 15:46:59 +1030
Please don't double post. I've already answered it.

-----Original Message-----
From: Glen Yagami [mailto:glenyagami@y...]
Sent: Wednesday, 18 December 2002 3:56 PM
To: Access
Subject: [access] Insert rows from store procedure


I want to insert the resulting rows of a store procedure to a new table 
but the code returns "Invalid object name 'sprTour'". I've changed the 
CommandType but it just returns another error message.

With cmd1
   .ActiveConnection = CurrentProject.Connection
   .CommandType = adCmdText
   .CommandText = "select tourcode into someNewTable from sprTour"
   .Execute
End With

Thanks
Glen

IMPORTANT - PLEASE READ ******************** 
This email and any files transmitted with it are confidential and may 
contain information protected by law from disclosure. 
If you have received this message in error, please notify the sender 
immediately and delete this email from your system. 
No warranty is given that this email or files, if attached to this 
email, are free from computer viruses or other defects. They 
are provided on the basis the user assumes all responsibility for 
loss, damage or consequence resulting directly or indirectly from 
their use, whether caused by the negligence of the sender or not.
Message #3 by Glen Yagami <glenyagami@y...> on Wed, 18 Dec 2002 17:49:22 -0800 (PST)
Sorry about double posting, the first one did not show up after i posted it. So I thought there's an error or something, then I
posted it again.



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

  Return to Index