query save problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm running an UPDATE query, however, when the filed name has a space in
front of a bracket, access deletes the space when the query is saved.

For example, when I have:
SET [Palletizing (Robots)] = Nz([Palletizing (Robots)],0),

After saving query, when I open it again, it becomes:
SET [Palletizing(Robots)] = Nz([Palletizing (Robots)],0),

The space between Palletizing and (Robots) is deleted. If I run the query
without correcting it every time, a message box pops up asking about
parameter value, because the field name has been changed.

I've also noticed that it doesn't happen on all of the fields with brackets
in their names, but there's at least one of them in each query I have that
has the problem.

Is this a program bug? Is there any way to fix it?

Thanks,
 
It's usually not a good idea to use special characters in field or
variable names. Stick to letters and numbers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top