SELECT "B" & Books.BookID............
UNION SELECT "P" & Periodical.PeriodicalID........
This would give you B1, B2, P1, P2 etc........
Alternatively, add a field to the query:
SELECT "Book" As Type, Books.BookID............
UNION SELECT "Periodical", Periodical.PeriodicalID........