How do I report column names in a query in Access?

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

Guest

I need to print a column name instead of the data if a field contains a
specific value.
 
Hi Russ,

SELECT Candidate.CANDIDATE_ID, Candidate.TITLE,
IIf([First_Name]="Alex","First_Name",[First_Name]) AS My_First_Name,
Candidate.FIRST_NAME
FROM Candidate

Does that do want you want.....
 
Alex White MCDBA MCSE said:
Hi Russ,

SELECT Candidate.CANDIDATE_ID, Candidate.TITLE,
IIf([First_Name]="Alex","First_Name",[First_Name]) AS My_First_Name,
Candidate.FIRST_NAME
FROM Candidate

Does that do want you want.....

--
Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

Russ said:
I need to print a column name instead of the data if a field contains a
specific value.


Thanks. Looks like it'll work for what we want.
 

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