I am going mad trying to sort this logic out lol
Public Sub Panels()
If RadPanelSearchCur.Visible = True Then
RadPanelTenant.Visible = False
'RadPanelProp.Visible = False
RadPanelTenantEdit.Visible = False
ElseIf RadPanelTenant.Visible = True Then
RadPanelSearchCur.Visible = False
'RadPanelProp.Visible = False
RadPanelTenantEdit.Visible = False
ElseIf RadPanelAddTenant.Visible = True Then
RadPanelSearchCur.Visible = False
' RadPanelTenant.Visible = False
RadPanelTenantEdit.Visible = False
ElseIf RadPanelTenantEdit.Visible = True Then
RadPanelSearchCur.Visible = False
RadPanelTenant.Visible = False
'RadPanelProp.Visible = False
'RadPanelt()
'ElseIf
End If
the idea is if one panel is opened the others are closed
thanks
M