I get the error message "Compile Error in Hidden Module" when I run some code. This only occurs in the run-time version of the application. I am using Access 97 on Windows 98 systems.
A sample of the code is below:
Private Sub Reason_Exit(Cancel As Integer)
If Left(Me.Reason.Value, 3) = "OTS" Or Left(Me.Reason.Value, 3) = "SDS" Or _
Left(Me.Reason.Value, 3) = "DI1" Then
Me.OTReason.Enabled = True
Me.OTReason.Locked = False
Me.OTReason.Visible = True
Me.STReason.Enabled = True
Me.STReason.Locked = False
Me.STReason.Visible = True
Me.Label44.Visible = True
Me.Label46.Visible = True
Me.Hours.SetFocus
Any help is appreciated.
A sample of the code is below:
Private Sub Reason_Exit(Cancel As Integer)
If Left(Me.Reason.Value, 3) = "OTS" Or Left(Me.Reason.Value, 3) = "SDS" Or _
Left(Me.Reason.Value, 3) = "DI1" Then
Me.OTReason.Enabled = True
Me.OTReason.Locked = False
Me.OTReason.Visible = True
Me.STReason.Enabled = True
Me.STReason.Locked = False
Me.STReason.Visible = True
Me.Label44.Visible = True
Me.Label46.Visible = True
Me.Hours.SetFocus
Any help is appreciated.