calculated controls

G

Guest

I'm a student. I am creating a query that for illistration purposes wants to
merge the LastName and FirstName fields in a query. The query is based on a
table. This demo is suppose to shol calculated fields. when I enter

Name: [LastName] & ", " & [FirstName]

I get an error message that says invalid syntax. You may have to enter an
operand without an operator. I
 
G

gls858

Pat said:
I'm a student. I am creating a query that for illistration purposes wants to
merge the LastName and FirstName fields in a query. The query is based on a
table. This demo is suppose to shol calculated fields. when I enter

Name: [LastName] & ", " & [FirstName]

I get an error message that says invalid syntax. You may have to enter an
operand without an operator. I

Very close try this ([LName] & ", " & [FName])
notice the parentheses.

gls858
 
G

gls858

gls858 said:
Pat said:
I'm a student. I am creating a query that for illistration purposes
wants to merge the LastName and FirstName fields in a query. The
query is based on a table. This demo is suppose to shol calculated
fields. when I enter
Name: [LastName] & ", " & [FirstName]

I get an error message that says invalid syntax. You may have to
enter an operand without an operator. I

Very close try this ([LName] & ", " & [FName])
notice the parentheses.

gls858
oops I changed the field names to match mine.
You should use FirstName LastName.

gls858
 
D

David F Cox

Name is an Access reserved word. (they've taken all of the best ones.)


gls858 said:
Pat said:
I'm a student. I am creating a query that for illistration purposes
wants to merge the LastName and FirstName fields in a query. The query
is based on a table. This demo is suppose to shol calculated fields.
when I enter Name: [LastName] & ", " & [FirstName]

I get an error message that says invalid syntax. You may have to enter
an operand without an operator. I

Very close try this ([LName] & ", " & [FName])
notice the parentheses.

gls858
 
V

Van T. Dinh

I may be wrong but IIRC, I don't think "Name" is a reserved word in JET SQL
....
 
G

gls858

David said:
Name is an Access reserved word. (they've taken all of the best ones.)


gls858 said:
Pat said:
I'm a student. I am creating a query that for illistration purposes
wants to merge the LastName and FirstName fields in a query. The query
is based on a table. This demo is suppose to shol calculated fields.
when I enter Name: [LastName] & ", " & [FirstName]

I get an error message that says invalid syntax. You may have to enter
an operand without an operator. I
Very close try this ([LName] & ", " & [FName])
notice the parentheses.

gls858
I didn't use Name nor did the OP I used FName and the OP used FirstName
so even if Name was reserved it wouldn't apply in either case.

gls858
 

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