I am not sure if this is a Report question or a Query question, so if I am asking in the wrong place, please forgive me.
I am building a report that will be deriving its information from a single table tblStudent. In this table there are 2 fields fldTeacher1 and fldTeacher2 and these fields are populated from a lookup in tblStudent from tblTeacher.
In tblStudent, the fldID from the tblTeacher is being stored in tblStudents.fldTeacher1 and tblStudents.fldTeacher2, while the teacher's name is being displayed in the table.
Having said that, when creating the record source in the query builder, I can obtain the names of Teacher1 (Bob Smith) and Teacher2 (Fred Star) seperately - each in its own column. However, what I really need is to have Teachers: fldTeacher1 & " and " & fldTeacher2 (Bob Smith and Fred Star) in one column.
The problem is that instead of getting the text "Bob Smith and Fred Star", I get "3 and 7" where 3 and 7 are the fldID# for Bob Smith and Fred Star. How is it that I can get the names and not the ID numbers for these teachers?
Please help if you can see what I am talking about.
I am building a report that will be deriving its information from a single table tblStudent. In this table there are 2 fields fldTeacher1 and fldTeacher2 and these fields are populated from a lookup in tblStudent from tblTeacher.
In tblStudent, the fldID from the tblTeacher is being stored in tblStudents.fldTeacher1 and tblStudents.fldTeacher2, while the teacher's name is being displayed in the table.
Having said that, when creating the record source in the query builder, I can obtain the names of Teacher1 (Bob Smith) and Teacher2 (Fred Star) seperately - each in its own column. However, what I really need is to have Teachers: fldTeacher1 & " and " & fldTeacher2 (Bob Smith and Fred Star) in one column.
The problem is that instead of getting the text "Bob Smith and Fred Star", I get "3 and 7" where 3 and 7 are the fldID# for Bob Smith and Fred Star. How is it that I can get the names and not the ID numbers for these teachers?
Please help if you can see what I am talking about.