Hi
I have a field on my form called "QueryType" (it is a query management DB). When a user wants to log a query they must select a query type. It is a drop down box currently with 14 options. It gets its possible values from a lookup of another table.
Certain Queries require additional fields. When the query type is changed to lets say "DDIC", I want two additional fields to become visible (they are currently invisible) "OrigName" and "OrigNum".
I have tried the following code as onChange event of the field "QueryType" but to no avail
DDIC Has an ID of "3"
Code:
Private Sub QueryType_Change()
Dim QueryID As Integer
QueryID = DLookup("ID", "tblQueryTypes", "Type='" & Me.QueryType.Value & "'")
If (QueryID) = 3 Then
Me.lblOriginatorName.Visible = True
End If
End Sub