Access (2013) Crashes on pressing Button that runs VBA Code UNLESS I view the VBA code before I hit the button.
It works fine after I come back from viewing the code in VBA.
Here is the VBA:
Any help would be appreciated
It works fine after I come back from viewing the code in VBA.
Here is the VBA:
Private Sub ShowIt_Click()
If ShowIt = False Then
cUSB.Visible = True
CFireWire.Visible = True
cThunder.Visible = True
cHDMI.Visible = True
cSIM.Visible = True
cTouch.Visible = True
eSat.Visible = True
cWWoB.Visible = True
cSD.Visible = True
cMSD.Visible = True
cWiFi.Visible = True
cEther.Visible = True
cBT.Visible = True
PCCard.Visible = True
cOther.Visible = True
OtherDes.Visible = True
HDMISize.Visible = True
SimSize.Visible = True
USBType.Visible = True
USBCount.Visible = True
ThunderCount.Visible = True
cWiFiExt.Visible = True
Label103.Visible = True
ShowIt.Caption = "Show Notes"
Label103.Caption = "Connections"
Notes.Visible = False
Label103.Width = 1200
RDPort.SetFocus
Else
If ShowIt = True Then
cUSB.Visible = False
CFireWire.Visible = False
cThunder.Visible = False
cHDMI.Visible = False
cSIM.Visible = False
cTouch.Visible = False
eSat.Visible = False
cWWoB.Visible = False
cSD.Visible = False
cMSD.Visible = False
cWiFi.Visible = False
cEther.Visible = False
cBT.Visible = False
PCCard.Visible = False
cOther.Visible = False
OtherDes.Visible = False
HDMISize.Visible = False
SimSize.Visible = False
USBType.Visible = False
USBCount.Visible = False
ThunderCount.Visible = False
cWiFiExt.Visible = False
Notes.Visible = True
Label103.Caption = "Notes"
ShowIt.Caption = "Show Connections"
Label103.Width = 600
Notes.SetFocus
Else
End If
End If
End Sub
Any help would be appreciated