Dear Friends, for days I try to work out a way to make a form that will allow for the input of a date(textbox with date picker), a amount of euro's in cash Textbox and then a query to calculate the result of that day from the table, then a textbox that will deduct the query result from amount of euro's and that should display the money in the till. At a certain moment I had this working without the date selection. It showed just the total of items purchased. After that and I can't remember what it was, all the forms that I try to make come up as blanks.. No fields visible nothing.. Could anyone point me in the right direction please??. For the date I used Forms!frmCash!txt_D_date.
The query is here;
I also tried calculating directly in a textbox that is what worked for the whole table.. Sorry just lost the plot..
The query is here;
Code:
SELECT DISTINCTROW tblDocket.ID, TblDocketBuy.ID, TblDocketBuy.F_Weight, TblDocketBuy.E_Weight, TblDocketBuy.B_Price, TblDocketBuy.Dirt, Sum(((([F_Weight]-[E_Weight])*((100-[TblDocketBuy.Dirt])/100))*[B_Price])/1000) AS DayTotal, tblDocket.D_Date
FROM TblDocketBuy INNER JOIN tblDocket ON TblDocketBuy.[DocID] = tblDocket.[Docket_Number]
GROUP BY tblDocket.ID, TblDocketBuy.ID, TblDocketBuy.F_Weight, TblDocketBuy.E_Weight, TblDocketBuy.B_Price, TblDocketBuy.Dirt, tblDocket.D_Date, tblDocket.D_Date
HAVING (((tblDocket.D_Date)=[Forms]![frmCash]![TxtD_date]));
I also tried calculating directly in a textbox that is what worked for the whole table.. Sorry just lost the plot..