R
Rick A
I have this code...
If Me!lstQuickEntry.ItemsSelected.Count > 0 Then
Set ctl = Me!lstQuickEntry
... (there's a lot more but I left it out because I don't think it is needed)
The listbox - lstQuickEntry - is populated and the first row is selected upon form open.
If I execute the code after the form opens the "ctl" is set to null. At least that's what the code is saying.
If I click on the listbox before I execute the code "ctl" functions as expected.
Why? Why must I click on the listbox to eliminate "null"? I'm missing something simple I'm sure..
Access 2K and beyond. Right now I'm on Access 2003.
Thanks,
If Me!lstQuickEntry.ItemsSelected.Count > 0 Then
Set ctl = Me!lstQuickEntry
... (there's a lot more but I left it out because I don't think it is needed)
The listbox - lstQuickEntry - is populated and the first row is selected upon form open.
If I execute the code after the form opens the "ctl" is set to null. At least that's what the code is saying.
If I click on the listbox before I execute the code "ctl" functions as expected.
Why? Why must I click on the listbox to eliminate "null"? I'm missing something simple I'm sure..
Access 2K and beyond. Right now I'm on Access 2003.
Thanks,