Back on my bee hive management system.
I have a couple instances where I have a form containing a list of records and there is a button that introduces a blank Pop-Up form to add the details of another record to the list. (The original list shows a very condensed version of the entries).
So, on the Pop-Up form, there are of course all the boxes for information but then I have buttons that are essentially:
"Save & Exit" that saves the new record and returns to the previous screen
"Save & Add Another" that saves the record and then prevents another 'new' version of the form for a fresh record
"Cancel" which is supposed to exit the Pop-Up box and not save the record regardless of whether information has been entered or not.
If info has not been entered, I can use the macro command 'CloseWindow' and if info has not been entered, I can use the macro command 'UndoRecord' and then 'CloseWindow'.
I would look to use an IIF / Then condition in the macro but I don't know what the IIF condition needs to be to determine if any of the controls have had information entered.
Probably overlooking the obvious but I need someone to point it out to me.
Thanks