Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coding the option box ???

Status
Not open for further replies.

andrep

Technical User
Feb 27, 2002
40
CA
I have an option box with 4 choices !

The option box name is courrier!
the checkboxes within are 1, 2, 3 ,4 with names like
canpar, lumis, etc.

I have been trying to code it so that is the option4 is
not checked and cost is = 0 then
send a message box stating that the cost of the courrier
has not been entered!
I have tried various ways but cant seem to get the syntax right?



If Me![courrier].option4 = False And Me!Port = 0 Then
MsgBox "my message"
End If

 
Hi!

Try this code:

If Me!courrier <> 4 and Me!Port = 0 Then
etc.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Just reference the Option Box:

If Me![courrier] <> 4 And Me!Port = 0 Then
MsgBox &quot;my message&quot;
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top