G
GB
I have a button on a form that when clicked does the following:
Private Sub Calculate_Price_Click()
DoCmd.RunCommand acCmdSaveRecord
Me.OrderDetailID.Requery
DoCmd.RunMacro "Price Calculation"
End Sub
Works fine BUT, when it runs the "Price Calculation" macro (a series of
queries) I'd like it to only perform the queries on the current record
(basically on the current order only). I want it to run on the current
"OrderID" only.
Do I have to change all the queries to run on CurrentRecord or is this
possible in code??!?!
Any help much appreciated, I've looked at the "Current Record" property in
the help files but don't really understand it... - just in case you haven't
guessed I'm new to this!!!
Private Sub Calculate_Price_Click()
DoCmd.RunCommand acCmdSaveRecord
Me.OrderDetailID.Requery
DoCmd.RunMacro "Price Calculation"
End Sub
Works fine BUT, when it runs the "Price Calculation" macro (a series of
queries) I'd like it to only perform the queries on the current record
(basically on the current order only). I want it to run on the current
"OrderID" only.
Do I have to change all the queries to run on CurrentRecord or is this
possible in code??!?!
Any help much appreciated, I've looked at the "Current Record" property in
the help files but don't really understand it... - just in case you haven't
guessed I'm new to this!!!