D
DS
I want to set the data in a textbox using SQL but it doesn't seem to be
working, any help appreciated.
Thanks
DS
With Me.Textbox
..ControlSource = "SELECT SalesDetailsMoney.SalesID, " & _
"SalesDetailsMoney.QtyPrice, SalesDetailsMoney.BasePrice, Items.Tax " & _
"FROM SalesDetailsMoney INNER JOIN Items ON SalesDetailsMoney.ItemID =
Items.ItemID " & _
"WHERE
(((SalesDetailsMoney.SalesID)=[Forms]![CheckPreview]![TxtSalesID]) AND
((Items.Tax)=1));"
End With
working, any help appreciated.
Thanks
DS
With Me.Textbox
..ControlSource = "SELECT SalesDetailsMoney.SalesID, " & _
"SalesDetailsMoney.QtyPrice, SalesDetailsMoney.BasePrice, Items.Tax " & _
"FROM SalesDetailsMoney INNER JOIN Items ON SalesDetailsMoney.ItemID =
Items.ItemID " & _
"WHERE
(((SalesDetailsMoney.SalesID)=[Forms]![CheckPreview]![TxtSalesID]) AND
((Items.Tax)=1));"
End With