Error 13 - Type Mismatch

B

Bellyjeans

Hi everybody,

I have a piece of code on the On Current event of a form, that goes as
so:

If Me.cboRank = "Assistant Professor" Or "Associate Professor" Then
me.chkTenureTrack.Visible = True
me.chkMedicalTrack.Visible = True
Else
me.chkTenureTrack.Visible = False
me.chkMedicalTrack.Visible = False
End If

It's a pretty simple piece of code that's worked for me in the past.
cboRank is associated with a text field in the underlying table, and
the two check boxes are associated with two yes/no fields in the
table. I've stepped through all the code and for some reason the
first line of it is popping up an Error 13 - Type Mismatch error
message. Can anybody help me with this?

Thanks!
 
B

Bellyjeans

Hi everybody,

I have a piece of code on the On Current event of a form, that goes as
so:

If Me.cboRank = "Assistant Professor" Or "Associate Professor" Then
   me.chkTenureTrack.Visible = True
   me.chkMedicalTrack.Visible = True
Else
   me.chkTenureTrack.Visible = False
   me.chkMedicalTrack.Visible = False
End If

It's a pretty simple piece of code that's worked for me in the past.
cboRank is associated with a text field in the underlying table, and
the two check boxes are associated with two yes/no fields in the
table.  I've stepped through all the code and for some reason the
first line of it is popping up an Error 13 - Type Mismatch error
message.  Can anybody help me with this?

Thanks!

Haha... nevermind... it was a really stupid error. I figured it out!
 

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

Top