CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Spaces in Table Names vs spaces in Field Names

Print topic Send  topic

Author Message
SteveS

Posts: 41
Posted: 02/27/2004, 12:20 PM

Ok, so I know that having spaces in table names is a big 'no no', however, having had syntax errors all day I started putting underscores in my field names and my syntax errors dissapear!

My question is why? Is this right? Do I need to change every space to an underscore in every single field in all of my tables?

I would apprechaite any insight into this!

Many thanks in advance.

Regards,

Steve.
View profile  Send private message
DonB
Posted: 02/27/2004, 2:08 PM

Nope. Just enclose them in brackets: [some table]. That's a de-facto
standard construct for handling names that do not conform to naming
standards (or when they are reserved words). It's very common where the
database is Access, because Access sort of encourages us to create names
with spaces, etc.

--
DonB

http://www.gotodon.com/ccbth


"SteveS" <SteveS@forum.codecharge> wrote in message
news:6403fa689512bb@news.codecharge.com...
> Ok, so I know that having spaces in table names is a big 'no no', however,
having had syntax errors all day I started putting underscores in my field
names and my syntax errors dissapear!
>
> My question is why? Is this right? Do I need to change every space to an
underscore in every single field in all of my tables?
>
> I would apprechaite any insight into this!
>
> Many thanks in advance.
>
> Regards,
>
> Steve.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 02/27/2004, 8:43 PM

You may also need to select "MS Access" as your database in both the Design and Server Connection settings.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Maduko
Posted: 12/17/2004, 12:38 PM

What if you have already but Code Charge isn't putting [ ]s around the field names.
JRB

Posts: 10
Posted: 12/17/2004, 12:45 PM

What is Access is selected yet reserved words are still not being handled correctly?

I am working with a table that has a field named Event. Code Charge is not putting [Event] in the ASP pages I generate.

Unfortunately there are dozens of other pages linked to this DB so I can't just rename the field.
_________________
\\


View profile  Send private message
dotnetjunkie

Posts: 1
Posted: 01/09/2005, 8:57 AM

Using square brackets works for the SELECT statement. However, when using INSERT INTO [table name] it seems to bomb. Does anyone know of any workarounds?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.