#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default strange


I have an Excel sheet with a VBA SQL connection routine. When I run the app
on one database it works fine. If I run it on a backup of the same database
it crashes on the EXEC <proc statement and says incorrect syntax near EXEC
statement.

Why would it work fine on one DB and not on another? I am using the admin
account for both.

Help!

Thanks
Richard


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default strange


hi
post the excute statement. and any other code too.l

Regards
FSt1

"Richard Douglass" wrote:

I have an Excel sheet with a VBA SQL connection routine. When I run the app
on one database it works fine. If I run it on a backup of the same database
it crashes on the EXEC <proc statement and says incorrect syntax near EXEC
statement.

Why would it work fine on one DB and not on another? I am using the admin
account for both.

Help!

Thanks
Richard



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default strange

you're sure that the connection opens ok and that the backed up db has
actually got the stored proc ?

"Richard Douglass" wrote in message
...
I have an Excel sheet with a VBA SQL connection routine. When I run the
app on one database it works fine. If I run it on a backup of the same
database it crashes on the EXEC <proc statement and says incorrect syntax
near EXEC statement.

Why would it work fine on one DB and not on another? I am using the admin
account for both.

Help!

Thanks
Richard

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
Need Help: Strange, Strange Behavior ( Not Me. My Model! ) SteveM Excel Programming 2 December 16th 07 06:02 PM
strange... lpi Excel Programming 0 August 24th 07 07:45 PM
Strange?! Jo[_2_] Excel Discussion (Misc queries) 6 August 8th 07 07:01 PM
Strange one Steph Excel Programming 3 June 6th 06 06:46 PM
Very-2 strange Amiit Mangla Excel Discussion (Misc queries) 4 December 21st 05 12:26 PM


All times are GMT +1. The time now is 08:50 AM.

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

About Us

"It's about Microsoft Excel"