S
shangman
I have a form which i use combo boxes to select info on the form from querys.
As i select from the first control the form will requery for the next
selection. (total of 2) After the second selection the form automatically
fills in the rest of the controls. (total of 3) based on my 2 selections.
This all works find. The problem i am having is sometimes the last control
could be blank. Because no info found during the requry. What i would like it
to do is to fill in the blank with the word "none". I tried using the if
statement (example below). Could someone help me on this? It's probably
something simple and i just didn't quite figure it out.
Private Sub Fname_AfterUpdate()
Me.clocknum.Requery
Me.fullname.Requery
Me.jcode.Requery
Me.List380.Requery
If IsNull(Me.List380) Then
Me.List380 = "none"
End If
End Sub
This didn't work, i dont get an error it just doesn't put in the word "none".
Any help would be greatly appreciated.
As i select from the first control the form will requery for the next
selection. (total of 2) After the second selection the form automatically
fills in the rest of the controls. (total of 3) based on my 2 selections.
This all works find. The problem i am having is sometimes the last control
could be blank. Because no info found during the requry. What i would like it
to do is to fill in the blank with the word "none". I tried using the if
statement (example below). Could someone help me on this? It's probably
something simple and i just didn't quite figure it out.
Private Sub Fname_AfterUpdate()
Me.clocknum.Requery
Me.fullname.Requery
Me.jcode.Requery
Me.List380.Requery
If IsNull(Me.List380) Then
Me.List380 = "none"
End If
End Sub
This didn't work, i dont get an error it just doesn't put in the word "none".
Any help would be greatly appreciated.