Code:
mySQL = "SELECT SUM([PrezzoDettaglio]*[Quantita]) " & _
"FROM Ordini_Prodotti " & _
"WHERE IDOrdine =" & Me.IDOrdine.Value
I am trying to use a button in a form to run this and display the returned value in a text box connected to the tblOrders.Totals field (that is, the value must be stored in the table AND displayed on the form at the same time, while also possibly allowing the user to modify it manually).
I know I can't use the .rowsource propery for text boxes, but I don't have any clues about any other possible ways to do this.