Hi everyone, I'm not particularly fluent with Access so do excuse amateur terminology, explanations etc.
Anyway; I've been setting up a Booking system through MS Access, to run alongside a PhP server. The Database includes information as you'd expect, Customer info, booking Info etc.
My problem lies in a Query where I want to include customer information (First name, surname) and booking information (Date, time and Price), I lastly want to include a 'Total' column which, as you'd expect, calculates the total price for each customer, additionally; I have set up a parameter under 'First Name' so the database can filter the results and show just the information relevant to them.
I have tried expressions such as:
Total: Dsum("Price","CurrentQuery","Customer Name =" & [Customer Name])
When the query is run I receive the "#Error" message.
So I took another approach and tried to look up the Total values from another query I quickly made, which was:
Total: DLookUp("TotalPrice","DifferentQuery","Customer Name =" & [Customer Name])
Again, I received the same error message.
Could anybody offer any solutions to my problem, perhaps an alternate approach?
Thanks in advance!
Anyway; I've been setting up a Booking system through MS Access, to run alongside a PhP server. The Database includes information as you'd expect, Customer info, booking Info etc.
My problem lies in a Query where I want to include customer information (First name, surname) and booking information (Date, time and Price), I lastly want to include a 'Total' column which, as you'd expect, calculates the total price for each customer, additionally; I have set up a parameter under 'First Name' so the database can filter the results and show just the information relevant to them.
I have tried expressions such as:
Total: Dsum("Price","CurrentQuery","Customer Name =" & [Customer Name])
When the query is run I receive the "#Error" message.
So I took another approach and tried to look up the Total values from another query I quickly made, which was:
Total: DLookUp("TotalPrice","DifferentQuery","Customer Name =" & [Customer Name])
Again, I received the same error message.
Could anybody offer any solutions to my problem, perhaps an alternate approach?
Thanks in advance!