jon jomaco
Registered User.
- Local time
- Today, 21:31
- Joined
- May 20, 2005
- Messages
- 41
Hi. New to this forum but i searched and found a section of code, shown below:
So, I have a form whereby you can select products by selecting them from a dropdown box. If an order allready has a product assigned to it then when this product with a particular productID is selected the message box should be displayed. However no matter what product is selected, whether is it allready assigned to the order or not the message is displayed and i cannot understand why. It did initially work so maybe i should just re-create the form but perhaps there is something missing?
Any info. appreciated, if you need more details or this makes no sense please say.
Thanks,
Jon.
Code:
If Me.Dirty Then
Me.Undo
MsgBox "This would create duplicate references to products for this order. Your changes have been undone.", vbOKOnly + vbInformation, "Changes Erased"
End If
So, I have a form whereby you can select products by selecting them from a dropdown box. If an order allready has a product assigned to it then when this product with a particular productID is selected the message box should be displayed. However no matter what product is selected, whether is it allready assigned to the order or not the message is displayed and i cannot understand why. It did initially work so maybe i should just re-create the form but perhaps there is something missing?
Any info. appreciated, if you need more details or this makes no sense please say.
Thanks,
Jon.