I am trying to test for a value within a table, but cannot quite get the syntax right. This procedure is part of a report and fires when the report opens. It is designed to suppress the display of a textbox depending upon the value of a field that is not actually a part of the report The table is part of the Qry that the report is based upon. Here is the procedure:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Private Sub Report_Open(Cancel As Integer)
If dbo_RF_CLASS.CLASS_LEV = “S” Then SLOT_DESC.Visible = False _
Else SLOT_DESC.Visible = True
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dbo_RF_CLASS.CLASS_LEV is the table/field name. It is a table that is linked to an external SQL database.
In the alternative, is there a better way to conditionally suppress the display of a textbox based upon a field value?
Randall Davis
Wichita, KS