isladogs
MVP / VIP
- Local time
- Today, 18:12
- Joined
- Jan 14, 2017
- Messages
- 18,457
Yes, I did.
Your attachment is beyond my knowledge in MS Access.
I will try to add some fields in the table tblFacilityRegister, and I will let you know how it helps.
Thanks a lot for your kind efforts.
All you need to do is copy & paste the query SQL into your database!
Code:
SELECT tblFacilityRegister.ID, tblFacilityRegister.SenderID, tblFacilityRegister.ReceiverID, tblFacilityRegister.ScannedBy, [tblSenders].[FirstName] & ' ' & [tblSenders.LastName] AS SenderName, [tblReceivers].[FirstName] & ' ' & [tblReceivers].[LastName] AS ReceiverName, [tblScanners].[FirstName] & ' ' & [tblScanners].[LastName] AS ScannedByName
FROM ((tblUsers AS tblSenders INNER JOIN tblFacilityRegister ON tblSenders.UserID = tblFacilityRegister.SenderID) INNER JOIN tblUsers AS tblReceivers ON tblFacilityRegister.ReceiverID = tblReceivers.UserID) INNER JOIN tblUsers AS tblScanners ON tblFacilityRegister.ScannedBy = tblScanners.UserID;
What's difficult about that?
Here's the same query in design view
The 3 tables tblSenders, tblReceivers, tblScanners are 3 copies of tblUsers where I've used an alias to distinguish them
Attachments
Last edited: