The easiest thing is to create a query to join tblBooks with tblOrders. So, the Price will be adopted automatically depending on the bookid. If this is not convenient, and you must use dlookup, where are you using the code? In the default value? Or in the "AfterUpdate" event? Perhaps, depending on what you are doing, you'll need to use a Form/subForm. By the way, I assume that Form tblOrders is bound to Table tblOrders, right?
To make a long story short, try the below and see if it helps:
Click [Event Procedure] in the "After Update" Property of "Bookdropdown" and type in the code below.
Code:
Me.Cost = DLookup("SalePrice", "tblBooks", "[bookID] = " & Me.bookdropdown)