why does "enter parameter values" pop up in SQL query in Access?

G

Guest

I want to get "current balance" out of my field CURRENT BALANCE. When I query
this in a SQL clause, a pop up comes and says "enter parameter value".
I am using this. SELECT current balance
FROM customers
WHERE current balance > 200;

When I run this, the parameter box pops up. Thanks
 
J

John Vinson

I want to get "current balance" out of my field CURRENT BALANCE. When I query
this in a SQL clause, a pop up comes and says "enter parameter value".
I am using this. SELECT current balance
FROM customers
WHERE current balance > 200;

When I run this, the parameter box pops up. Thanks

Blanks are important. It's looking for a parameter named "current" and
another parameter named "balance".

If (unwisely, IMO) you use blanks in fieldnames you must, no option,
enclose the fieldname in square brackets:

SELECT [Current balance]
FROM customers
WHERE [Current balance] > 200;

John W. Vinson[MVP]
 
A

aaron.kempf

more importantly; don't use MDB for anything it has been obsolete for
TEN YEARS




John said:
I want to get "current balance" out of my field CURRENT BALANCE. When I query
this in a SQL clause, a pop up comes and says "enter parameter value".
I am using this. SELECT current balance
FROM customers
WHERE current balance > 200;

When I run this, the parameter box pops up. Thanks

Blanks are important. It's looking for a parameter named "current" and
another parameter named "balance".

If (unwisely, IMO) you use blanks in fieldnames you must, no option,
enclose the fieldname in square brackets:

SELECT [Current balance]
FROM customers
WHERE [Current balance] > 200;

John W. Vinson[MVP]
 

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

Top