I've just upsized an MDB to SQL Server 2k and have created an ADP to use as the front end. Evidentally, since I had Access 2000, only the tables were upsized. I'm now trying to convert all my queries into either Views or Sproc's and having many difficulties, but the main problem is that
I have a form that has the below code specified:
--------------------------------------------------
Private Sub Form_Load()
If Check110.Value = True Then
Label111.Caption = "Merchandise Account"
Text113.Enabled = True
Merch_value.Enabled = True
Merch_status.Enabled = True
Else
Label111.Caption = "Non-Merchandise Account"
Text113.Enabled = False
Merch_value.Enabled = False
Merch_status.Enabled = False
End If
End Sub
--------------------------------------------------------
It was intended that when the form loaded that it would check the value of a checkbox named "Check110" and conditionally enable/disable other fields(grey-out) on the form...it worked fine in the previous MDB..
As you can see, it is very simple VB code, but when the form loads, it throws this error:
"Run-time error 2427:
You entered an expression that has no value."
...and when I debug it, it points to the first line of the subroutine:
----------------------------------
If Check110.Value = True Then
----------------------------------
Any idea why this would work fine in an MDB and not an ADP?
Thanks,
Steve
I have a form that has the below code specified:
--------------------------------------------------
Private Sub Form_Load()
If Check110.Value = True Then
Label111.Caption = "Merchandise Account"
Text113.Enabled = True
Merch_value.Enabled = True
Merch_status.Enabled = True
Else
Label111.Caption = "Non-Merchandise Account"
Text113.Enabled = False
Merch_value.Enabled = False
Merch_status.Enabled = False
End If
End Sub
--------------------------------------------------------
It was intended that when the form loaded that it would check the value of a checkbox named "Check110" and conditionally enable/disable other fields(grey-out) on the form...it worked fine in the previous MDB..
As you can see, it is very simple VB code, but when the form loads, it throws this error:
"Run-time error 2427:
You entered an expression that has no value."
...and when I debug it, it points to the first line of the subroutine:
----------------------------------
If Check110.Value = True Then
----------------------------------
Any idea why this would work fine in an MDB and not an ADP?
Thanks,
Steve