Solved

Sql Access

Posted on 2001-09-13
4
132 Views
Last Modified: 2010-04-06
how do i write query with fields that has blank in the name

for example

There is field named "Field 1"

select * from Table1.Field 1  --- ??








0
Comment
Question by:asi
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6478856
select * from table1.[field 1]
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6478860
try this

select "Field 1" from TheTable

meikl ;-)
0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 10 total points
ID: 6478876
oppps, i wrote it like the way you wrote ur statment and that was wrong

if you are using access database put the field between []

select [field 1] from table

for other database use Meikl comment
0
 

Author Comment

by:asi
ID: 6482308
so , why do i get error on
 INSERT INTO Table1([Field 2]) VALUES ('1')
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question