Creating an update query that uses multiple parameters

Joined
Apr 9, 2019
Messages
2
Reaction score
1
Hi, Im trying to calculate due date for an update query with different loan periods so for eg: Loan date is April 10 for an OPSH (Open shelf book) with a loan period of 7 days, an RBC1 (reserved book overnight) has a loan period of 1 day. How do i get the due date for each book using a parameter query?
 
I guess you are using Access? Or maybe SQL Server? Anyway you can add and subtract from a date column to get the due date:
SELECT CAST(NEW DATETIME() + LoanPeriod) AS DueDate FROM Loans

Some helpful links:
 
Yes I am! What i had to do was create an update parameter query for EACH loan period, but is there a way to do it in 1 query?
 
Back
Top