Sql Access

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  --- ??








asiAsked:
Who is Participating?
 
Mohammed NasmanConnect With a Mentor Software DeveloperCommented:
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
 
Mohammed NasmanSoftware DeveloperCommented:
select * from table1.[field 1]
0
 
kretzschmarCommented:
try this

select "Field 1" from TheTable

meikl ;-)
0
 
asiAuthor Commented:
so , why do i get error on
 INSERT INTO Table1([Field 2]) VALUES ('1')
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.