Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Error '' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rote - 23 Jan 2008 04:22 GMT
Hello Everyone,
I'm retrieving data from  Excel from my asp.net page
The WorkSheet name is StatusPasPorts.

When i remove the column [Account Reference No.]  it does work fine but if i
use it  i get error :
'' is not a valid name. Make sure that it does not include invalid
characters or punctuation and that it is not too long.

SELECT [Event Date],[Mobile Number],[Event Type Name],[Identification
Method],[Customer DOB],[Account Reference No.] FROM [StatusPasPorts$] where
[Mobile Number] = '" + this.TextBox1.Text.ToString() + "' order by [Event
Date] ASC

Any ideas what i'm missing.

Thanks in Advance
Tim Williams - 23 Jan 2008 05:40 GMT
Have you tried not using a period in the column name?

Tim

> Hello Everyone,
> I'm retrieving data from  Excel from my asp.net page
[quoted text clipped - 13 lines]
>
> Thanks in Advance
Patrick.O .Ige - 23 Jan 2008 12:35 GMT
Tim thanks for the reply.
But the column has a period by default.
Will have have to remove the period and save it back before using the excel?
Any worarounds for this?
Thanks

> Have you tried not using a period in the column name?
>
[quoted text clipped - 17 lines]
> >
> > Thanks in Advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.