Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default run time error 2147217900

Hi,

I have a macro that runs a sql stored procedure and brings
back a record set.

I can run it once and get my results. If I kick off the
macro a 2nd time, I get the run time error "procedure or
function sp_x has too many arguments specified". If I
choose end, and try the macro for the 3rd time, it works
again. It's almost like I'm not disconnecting
something. It doesn't matter which stored procedure I'm
running (several similar), it's always the 2nd try after a
successful run. If I run sp_1, and my 2nd try is for
sp_3, I will get stopped for the same reason.

Does anyone have any ideas?

Thanks,

Barb
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default run time error 2147217900

problem solved -

-----Original Message-----
Hi,

I have a macro that runs a sql stored procedure and

brings
back a record set.

I can run it once and get my results. If I kick off the
macro a 2nd time, I get the run time error "procedure or
function sp_x has too many arguments specified". If I
choose end, and try the macro for the 3rd time, it works
again. It's almost like I'm not disconnecting
something. It doesn't matter which stored procedure I'm
running (several similar), it's always the 2nd try after

a
successful run. If I run sp_1, and my 2nd try is for
sp_3, I will get stopped for the same reason.

Does anyone have any ideas?

Thanks,

Barb
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
run-time error '91'-Close Button error ASCO IS Help Excel Discussion (Misc queries) 1 May 8th 06 04:25 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 08:35 PM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 07:45 PM


All times are GMT +1. The time now is 09:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"