I am very new to access and I am using the Dlookup function to pull the results from a query into a text box to appear on a form. I have the following expression in the Data Control Source field for the text box and it is pulling in the very first result from the query. =DLookUp("SumOfSales","qTtlSalesbyComp","Company = Company")
I need it to act as a vlookup and match the Company in the query to the Company in the Company text box and pull the SumofSales that corresponds. Any hep would be greatly appreciated.
If
Companyis text:If it is numerical: