I'm currently designing a database for a univeristy reprographics department and am having a sloght problem.
I have 2 tables- TblStaff, which contains Autonumber, Surname, First_Name. TblUsage, which contains info about photocopier usage as well as Staff_Name (link to TblStaff)
I have a combo box on FrmUsage which displays the staff surname and firstname. The wizzard put this in 2 colums i.e. Surname | Firstname. I changed it with the following code, so everything appears as one column.
SELECT [TblStaff].[ID], [TblStaff].[Surname] & ", " & [TblStaff].[First_Name] AS Expr1 FROM TblStaff ORDER BY [TblStaff].[Surname] & ", " & [TblStaff].[First_Name];
This displays Surname,Firstname which looks a lot better.
On to the problem - After the user selects the staff surname and firstname only the surname appears in TblUsage. For reporting purposes, I really need to have both the Surname and Firstname appearing as many staff have the same surname i.e. Smith etc.
Is there anyway to do this, or will I need to have 2 fields in TblUsage, one for surname and one for firstname?
Thanks
Dave
I have 2 tables- TblStaff, which contains Autonumber, Surname, First_Name. TblUsage, which contains info about photocopier usage as well as Staff_Name (link to TblStaff)
I have a combo box on FrmUsage which displays the staff surname and firstname. The wizzard put this in 2 colums i.e. Surname | Firstname. I changed it with the following code, so everything appears as one column.
SELECT [TblStaff].[ID], [TblStaff].[Surname] & ", " & [TblStaff].[First_Name] AS Expr1 FROM TblStaff ORDER BY [TblStaff].[Surname] & ", " & [TblStaff].[First_Name];
This displays Surname,Firstname which looks a lot better.
On to the problem - After the user selects the staff surname and firstname only the surname appears in TblUsage. For reporting purposes, I really need to have both the Surname and Firstname appearing as many staff have the same surname i.e. Smith etc.
Is there anyway to do this, or will I need to have 2 fields in TblUsage, one for surname and one for firstname?
Thanks
Dave