I have a program that allows the user to book seats for a theatre performance. When the form loads it creates a combobox with customer accounts in and allows the users to select a seat from a panel of buttons. The first time running the program it works perfectly however trying to book a seat again for another customer or even the same one. Or closing the program and then reopening it to book seats produces the following error when one of the seats is pressed.
On this line
Object reference not set to an instance of an object.
On this line
strFriBookArray(intSeatChoice).strCusNum = strCusArray(intCusAccountChoice).strCusNum