PC Review


Reply
Thread Tools Rate Thread

How can I get Access to allow a "." in a Field Name?

 
 
=?Utf-8?B?QnJ5YW4=?=
Guest
Posts: n/a
 
      24th Jan 2006
I'm trying to use field names which include a period (.) in the name. I know
this isn't an allowed character in an MS Access field name...but does anyone
know of a way of getting around this?
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      24th Jan 2006
"Bryan" <(E-Mail Removed)> wrote in message
news:43CBA89E-8FDE-4CBB-AF4F-(E-Mail Removed)
> I'm trying to use field names which include a period (.) in the name.
> I know this isn't an allowed character in an MS Access field
> name...but does anyone know of a way of getting around this?


I don't think there's a way around it -- that character occupies too
fundamental a role in parsing SQL statements. Why on Earth would you
want to? If you can explain your reasons, maybe we can think of an
alternative.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
=?Utf-8?B?QnJ5YW4=?=
Guest
Posts: n/a
 
      24th Jan 2006
It's actually someone I work with that's doing this. They're importing data
into our decision engine from an Access database.

Many of the field names have at least one "." in the name, while some have
none (and also, some have many).

Because they're using the field name in a select statement, of course it
must match exactly to import the data. So they're either going to have to
rename a BUNCH of field names, or we've got to figure a way around it.

Thanks,

Bryan

"Dirk Goldgar" wrote:

> "Bryan" <(E-Mail Removed)> wrote in message
> news:43CBA89E-8FDE-4CBB-AF4F-(E-Mail Removed)
> > I'm trying to use field names which include a period (.) in the name.
> > I know this isn't an allowed character in an MS Access field
> > name...but does anyone know of a way of getting around this?

>
> I don't think there's a way around it -- that character occupies too
> fundamental a role in parsing SQL statements. Why on Earth would you
> want to? If you can explain your reasons, maybe we can think of an
> alternative.
>
> --
> Dirk Goldgar, MS Access MVP
> www.datagnostics.com
>
> (please reply to the newsgroup)
>
>
>

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      24th Jan 2006
"Bryan" <(E-Mail Removed)> wrote in message
news:1B575252-6FE3-414F-AE24-(E-Mail Removed)
> It's actually someone I work with that's doing this. They're
> importing data into our decision engine from an Access database.
>
> Many of the field names have at least one "." in the name, while some
> have none (and also, some have many).
>
> Because they're using the field name in a select statement, of course
> it must match exactly to import the data.


I'm not sure about the "of course" part of that. It doesn't seem all
that unlikely that an import feature for some (unspecified) program
might allow for mapping field names. Is the SELECT statement in
question being created and run by this "decision engine", or is it in
Access?

Does the import feature in question support importing from CSV files?
If so, you might export from Access to a CSV file, add the desired
field-name header line, and then import that into the other program?

Or could you make it a two-step process: define the Access tables with
some special character in the field names to represent the dot, then
have the import process import them into some temp table, rename the
fields by replacing that character, and then append that temp table to
the permanent table?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      24th Jan 2006
"Dirk Goldgar" <(E-Mail Removed)> wrote:

>define the Access tables with
>some special character in the field names to represent the dot


I'd suggest _ or underscore.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 25th Feb 2009 11:41 PM
Trying to filter an Access database with a Field LIKE "%" + "@PARAM" + "%" mosscliffe Microsoft ASP .NET 4 18th May 2006 10:13 PM
create category-flag field to specify "work" "personal" "school" . =?Utf-8?B?QmFyayBFYXRlcg==?= Microsoft Outlook Discussion 2 15th Sep 2005 12:53 AM
Access Insert - Syntax Error for field "DATE" but not for "DATE1" devprog Microsoft VB .NET 2 22nd Apr 2005 02:52 AM
I want to check a field of table is "Null" or "Empty" in Access'03 =?Utf-8?B?QW5lc2g=?= Microsoft Access Macros 5 7th Dec 2004 01:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 PM.