5

In MS Access, my table is:Exam{id,name}, and my query is

select Exam.id as 'Exam.id',Exam.name as 'Exam.name' from Exam

Now when I executed this query this error ocurred:

"Exam.id" is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.

I want to use the full table + column as the alias, Exam.name as 'Exam.name', but how can I get Access to accept it?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Farna
  • 1,157
  • 6
  • 26
  • 45

1 Answers1

4

As the error indicates, punctuation is not allowed in an alias in MS Access. Consider revising your query to eliminate punctuation.

select e.id as 'ExamId', 
    e.name as 'ExamName' 
from Exam e
kbrimington
  • 25,142
  • 5
  • 62
  • 74