Okay I'm a C++/Java guy so I might have the wrong idea on how subroutines work. Anyway I have a combo box drop down menu that is assigned to a string variable 'tblName'. I want to "pass" this string into a function for storage so when the form containing the combo box closes, it will automatically set the last value used to be the default value.
eg. Open form, combo box value is set to "Donkey", set combo box value to "Cows", set combo box to "Horses", close form, open form, now "Horses" will be the default combo box value.
Do I have the right idea about passing it into a function and storing it? Or is there an easier way to do this.
eg. Open form, combo box value is set to "Donkey", set combo box value to "Cows", set combo box to "Horses", close form, open form, now "Horses" will be the default combo box value.
Do I have the right idea about passing it into a function and storing it? Or is there an easier way to do this.