I hope someone can help me - I'm trying to write a macro that stops or runs depending on the value of a certain field in the related form. This Conditional field ("ORDER_TOTAL") in question is a calculated total value of all the value of the records in the form.
In detail, the form contains a list of all products that require to be ordered from a supplier. If the "ORDER_TOTAL" value (ie the total of the value of all the lines) is below £1000, the macro will stop but if the "ORDER_TOTAL" value is above £1000, the macro will send a csv file of the form contents.
I've written many Stop macros using the IsNull function without any problems, but this one has me stumped.
I'm clearly missing something simple here..
Here's the condition I've tried to use
Code:
([Forms]![FLAG UP LOW STOCK - AMTECH]![Order_Total])<1000
, but the macro only runs the "Stop" action. I've also tried the ">1000" but it still only runs the Stop actions.
I'm wondering if the problem is to do with the fact that the control field is a calculated one so as such isn't really part of the form contents.
All ideas would be welcome. I have no clue about VBA so I need to do this with a macro.
Thanks in advance,
Mike