Visual Basic Checkbox

Checkbox code within IF / End If

Page 1 of 1

1 Replies - 4054 Views - Last Post: 29 April 2008 - 01:49 AM Rate Topic: -----

#1 johnayoub  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-April 08

Visual Basic Checkbox

Post icon  Posted 28 April 2008 - 10:16 PM

I don't know how to get the checkbox to work ... and if I should declare the checkbox variable

' Convert text box data to variables
nOfMilesToWork = Val(nOfMilesToWorkBox.Text)
nOfDaysWorked = Val(nOfDaysWorkedBox.Text)
nOfMilesToCRC = Val(nOfMilesToCRCBox.Text)
nOfDaysFS = Val(nOfDaysFSBox.Text)
nOfWeeksS = Val(nOfWeeksSBox.Text)
nOfDaysSS = Val(nOfDaysSSBox.Text)

attendSummer = attendSummerCheckBox
attendSummer.AutoCheck = False

If attendSummer.Checked = True ................
. ....................nOfWeeksS = 0
End If

Is This A Good Question/Topic? 0
  • +

Replies To: Visual Basic Checkbox

#2 sam_benne  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 16
  • View blog
  • Posts: 732
  • Joined: 16-January 08

Re: Visual Basic Checkbox

Posted 29 April 2008 - 01:49 AM

if attendsummer.checked = true then
select case attendsummer
case attendsummer
.......
end select
end if


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1