I have a subform in datasheet view.
On the AfterUpdate code the Markup field, it recalculates the ItemSell & GM1
Like so:
The problem is it puts the new values for markup1 and GM1 in all of the rows.
I want each row to have a seperate value for markup1 & GM1
What am I doing wrong?
Or is it not possible?
On the AfterUpdate code the Markup field, it recalculates the ItemSell & GM1
Like so:
Code:
Private Sub markup1_AfterUpdate()
'calc sell and margin(gm)
Me.ItemSell = Round((Me.ItemCost * (Me.markup1 / 100)) + Me.ItemCost, 0)
Me.GM1 = Round(((Me.ItemSell - Me.ItemCost) / Me.ItemSell) * 100, 0)
End Sub
The problem is it puts the new values for markup1 and GM1 in all of the rows.
I want each row to have a seperate value for markup1 & GM1
What am I doing wrong?
Or is it not possible?