Thanks in advance for any help!!!
I use the expression 'listname.value' in an 'if' construction in vba code to remove entries from a list in a form by clicking on a button. 'Listname.value' returns a unique id for each entry of the list that is selected (by the user) in the form. When the last entry of the list was removed, at any following click on the button a msgbox should let the user know that the order could not be processed due to an empty list. The problem occurs when the list is empty. After having removed the last entry of the list, at any following click on the button 'listname.value' contains the id of the last entry that was removed from the list. As the list is empty it should contain 'null'.
Do I have to refresh 'listname.value' in a special way? Or is there a special option?
I appreciate any help!
I use the expression 'listname.value' in an 'if' construction in vba code to remove entries from a list in a form by clicking on a button. 'Listname.value' returns a unique id for each entry of the list that is selected (by the user) in the form. When the last entry of the list was removed, at any following click on the button a msgbox should let the user know that the order could not be processed due to an empty list. The problem occurs when the list is empty. After having removed the last entry of the list, at any following click on the button 'listname.value' contains the id of the last entry that was removed from the list. As the list is empty it should contain 'null'.
Do I have to refresh 'listname.value' in a special way? Or is there a special option?
I appreciate any help!