dbTalk Databases Forums  

passthrough query and error 3125 (not a valid name)

comp.databases.ms-access comp.databases.ms-access


Discuss passthrough query and error 3125 (not a valid name) in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
KayC
 
Posts: n/a

Default passthrough query and error 3125 (not a valid name) - 01-23-2008 , 10:38 AM






Hi
Can anyone pointme in the right direction?
I run Access2000 and have a passthrough query to a Sybase db
I am trying to make a table out of the passthrough query but get the
following error

error 3125 'Pool Factor 21 Jan 2008' is not a valid name. Make sure
that it does not include invalid characters or punctuation and that it
is not too long

The passthrough query is a stored proc which runs fine when executed -
I am completely lost at why I can't make it into a table! Is it
because of the field 'Pool Factor 21 Jan 2008' - I have made a table
with this as a field heading and Access accepts it

Any help appreciated

Regards

KC

Reply With Quote
  #2  
Old   
Rich P
 
Posts: n/a

Default Re: passthrough query and error 3125 (not a valid name) - 01-23-2008 , 12:13 PM






Greetings,

When you say the stored procedure runs fine, do you mean it runs fine in
Access? Or it just runs fine in Sybase?

Does the procedure run in Access? Or do you mean the passthrough query
runs OK? If the passthrough query runs OK, then I would try an Insert
Into statement instead of a Select * Into statement. The only catch is
that you have to manually create the table to Insert Into first.

DoCmd.RunSql "Insert into yourmanuallycreatedTbl Select * from
passthroughQry"



Rich

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
KayC
 
Posts: n/a

Default Re: passthrough query and error 3125 (not a valid name) - 01-23-2008 , 02:48 PM



On 23 Jan, 18:13, Rich P <rpng... (AT) aol (DOT) com> wrote:
Quote:
Greetings,

When you say the stored procedure runs fine, do you mean it runs fine in
Access? Or it just runs fine in Sybase?

Does the procedure run in Access? Or do you mean the passthrough query
runs OK? If the passthrough query runs OK, then I would try an Insert
Into statement instead of a Select * Into statement. The only catch is
that you have to manually create the table to Insert Into first.

DoCmd.RunSql "Insert into yourmanuallycreatedTbl Select * from
passthroughQry"

Rich

*** Sent via Developersdexhttp://www.developersdex.com***
Hi Rich
The SP runs fine in both Access and Sybase, I will try your suggestion
of the INSERT sql statement and get back
Thanks
KC


Reply With Quote
  #4  
Old   
KayC
 
Posts: n/a

Default Re: passthrough query and error 3125 (not a valid name) - 01-24-2008 , 04:30 AM



On 23 Jan, 20:48, KayC <kay_c... (AT) yahoo (DOT) co.uk> wrote:
Quote:
On 23 Jan, 18:13, Rich P <rpng... (AT) aol (DOT) com> wrote:





Greetings,

When you say the stored procedure runs fine, do you mean it runs fine in
Access? *Or it just runs fine in Sybase?

Does the procedure run in Access? *Or do you mean the passthrough query
runs OK? *If the passthrough query runs OK, then I would try an Insert
Into statement instead of a Select * Into statement. *The only catch is
that you have to manually create the table to Insert Into first.

DoCmd.RunSql "Insert into yourmanuallycreatedTbl Select * from
passthroughQry"

Rich

*** Sent via Developersdexhttp://www.developersdex.com***

Hi Rich
The SP runs fine in both Access and Sybase, I will try your suggestion
of the INSERT sql statement and get back
Thanks
KC- Hide quoted text -

- Show quoted text -
Hey
An update on my error, the cause of the error is due to leading spaces
in one of the columns outputted within the Stored Proc
Thanks for your suggestions
Regards
KC


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.