Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 24th, 2005, 03:48 AM
Registered User
 
Join Date: Dec 2004
Location: chennai, tamilnadu, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default column name with space in access

hai everybody,

in my table there is a space in column names. how i can retrieve that field using select query. I don't want to put select * from tablename. i want to retrieve like this select column1,column2 from table name. help me

thanks in advance

Kalyanaraman Narayanan
Reply With Quote
  #2 (permalink)  
Old January 24th, 2005, 04:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oxford, , United Kingdom.
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As you've discovered, spaces in names cause problems.

The ideal solution would be to remove them! Assuming you've gone too far to do this without loads of work, just wrap the field names in square brackets.

Code:
SELECT [table 1].[field 1]
FROM [table 1]

Brian Skelton
Braxis Computer Services Ltd.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Space in my database table Access cannielynn0312 ASP.NET 1.0 and 1.1 Basics 4 December 27th, 2007 06:02 AM
Access to phisical addreses from user space somevlad Linux 0 June 15th, 2006 08:03 PM
Access Column Attributes ~Bean~ ADO.NET 0 November 16th, 2005 09:21 AM
Refer To Access Table's Column Name ritag Access ASP 3 June 24th, 2004 09:30 AM



All times are GMT -4. The time now is 04:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.