How to trap when combo has no entry

pb21

Registered User.
Local time
Today, 17:22
Joined
Nov 2, 2004
Messages
122
I have a combo that the user is meant to select a value commission rate. How do I trap if the user didnt enter anything? i tried =null is null but it just squeels about wanting an object. here is the code that grabs the value:

commissionpercent = CDbl(Forms!FrmbookcourseEnhanced!CBCommission.Column(0))

I tried if(forms!.....cbcommission.column(0)=null) then...

that failed.

regards in advance.
peter
 
Code:
If IsNull(Forms!FrmbookcourseEnhanced!CBCommission) then

   ' do something  
 
End If


If the code is on the FrmbookcourseEnhanced form, you can use:
Code:
If IsNull(Me.CBCommission) then

   ' do something  
 
End If
 

Users who are viewing this thread

Back
Top Bottom