I have 2 tables
Booking
BookingID (Primary Key)
StartDate
EndDate
Rooomno (Foreign Key)
Room
Roomno (Primary Key)
CostPerNight
I made a form using the booking table. I need to display the total cost of the booking in a textbox on the form:
=(Nz([EndDate])-Nz([StartDate]))*Nz([CostPerNight])
I get the #Name? error and I think it is because the CostPerNight field is not displayed on the form. I dont want to use a subform and I dont know any other way to display fields from different tables on one form.
I dont want to add a calculated field called TotalCost to my booking table. Can you please suggest another way to accomplish my task?
Booking
BookingID (Primary Key)
StartDate
EndDate
Rooomno (Foreign Key)
Room
Roomno (Primary Key)
CostPerNight
I made a form using the booking table. I need to display the total cost of the booking in a textbox on the form:
=(Nz([EndDate])-Nz([StartDate]))*Nz([CostPerNight])
I get the #Name? error and I think it is because the CostPerNight field is not displayed on the form. I dont want to use a subform and I dont know any other way to display fields from different tables on one form.
I dont want to add a calculated field called TotalCost to my booking table. Can you please suggest another way to accomplish my task?