• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

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

  • 2
1 Solution
Mohammed NasmanSoftware DeveloperCommented:
select * from table1.[field 1]
try this

select "Field 1" from TheTable

meikl ;-)
Mohammed NasmanSoftware 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
asiAuthor Commented:
so , why do i get error on
 INSERT INTO Table1([Field 2]) VALUES ('1')
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.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now