Quick VB Prog. ?

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

I have a radio button on my form. When the radio button =
True a combo box becomes available to create queries
from. The problem arises when the radio button is
selected, but no data is selected or typed in the combo
box. I need to put in a safety to make sure that there is
some data present in the combo box if the radio button is
selected.

Something along the lines of:

If forms![main form]!Combo.value = Null Then
MsgBox "Error"
End IF

This does not work...Any suggestions?

Thanks,
Adam
 
Adam try,

if isnull(forms![main form]!Combo.value) then msgbox "error"

Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top