Hi Guys, the last action on my entry form is to select a Sales Rep from a listbox. Is there a way to fire query, or mayby quicker to run the SQL statement.
Code for the listbox =
The Save and Requery are done to update the form with the latest changes.
The Query/SQL I like to run before the save =
As usual any help appreciated..
Code for the listbox =
Code:
[COLOR="Red"]Private Sub List203_Click()
DoCmd.Save
DoCmd.Requery
End Sub[/COLOR]
The Save and Requery are done to update the form with the latest changes.
The Query/SQL I like to run before the save =
Code:
[COLOR="red"]UPDATE Materials INNER JOIN Docket ON Materials.ID = Docket.Materials SET Docket.BuyPrice = [Materials].[BuyPrice], Docket.SalePrice = [Materials].[SalePrice]
WHERE (((Docket.ID)=[Forms]![Touchscreen]![List210]) AND ((Materials.ID)=[Forms]![Touchscreen]![List125]));[/COLOR]
As usual any help appreciated..