V
vbnetman via AccessMonster.com
I'm running the following code to enable / disable radio buttons, depending
on certain conditions. However, I get a type mismatch on line 5. I've
declared meterfind as an integer. Is DLookup returning an integer? If so, why
the mismatch?
Private Sub Frame38_Click()
Select Case Me.Frame38
Case 1
Dim meterfind As Integer
meterfind = DLookup("[UnitOfMeasure]", "TblRunningMeter", "meterID = 1")
If meterfind = 2 Then
meter2OptionButton.Enabled = True
Else
meter2OptionButton.Enabled = False
End If
End Select
End Sub
Thank you in advance
on certain conditions. However, I get a type mismatch on line 5. I've
declared meterfind as an integer. Is DLookup returning an integer? If so, why
the mismatch?
Private Sub Frame38_Click()
Select Case Me.Frame38
Case 1
Dim meterfind As Integer
meterfind = DLookup("[UnitOfMeasure]", "TblRunningMeter", "meterID = 1")
If meterfind = 2 Then
meter2OptionButton.Enabled = True
Else
meter2OptionButton.Enabled = False
End If
End Select
End Sub
Thank you in advance