Access VBA ListBox check if selected

No Value selected check on ListBox

questionit
553 512MB
How to check if No Value was selected from List-Box without using any built-in Events ?
Jul 25 '07 #1
Follow Post Reply
6 26539
MikeTheBike
637 Expert 512MB
Hi
How to check if No Value was selected from List-Box without using any built-in Events ?
If you do not use an event, how does Access know you want to know if anything is selected ?

MTB
Jul 25 '07 #2
reply
questionit
553 512MB
I thought it would be possible to do like that.

for example, i click on a button and i write the following code :

[code]
Public Sub cmd_btn_Click[]
If ComboBox0.Value = "" Then
Jul 25 '07 #5
reply
MikeTheBike
637 Expert 512MB
I thought it would be possible to do like that.

for example, i click on a button and i write the following code :

Expand|Select|Wrap|Line Numbers
  1. PublicSubcmd_btn_Click[]
  2. IfComboBox0.Value=""Then

Chủ Đề