Dear All,
I have a form which has tabs.
The first Tab About; is the tab I want to focus on.
I have a list on this tab, with 2 entries:
About?
Input
Based on this I have a case select senario:
I have the following code above the code above:
What I want is for the default selected item in the list, to be About?.
It seems to be ignoring my code.
Any help would be greatly appreciated![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
Kind regards
Tiacona
I have a form which has tabs.
The first Tab About; is the tab I want to focus on.
I have a list on this tab, with 2 entries:
About?
Input
Based on this I have a case select senario:
Code:
Private Sub ListAbout_AfterUpdate()
Select Case ListAbout.ItemData(ListAbout.ListIndex)
Case "About?"
StartDate.Enabled = False
EndDate.Enabled = False
StartDate.Visible = False
EndDate.Visible = False
StartDateLb.Visible = False
EndDateLb.Visible = False
CmbOffLb.Visible = False
CmbOff.Visible = False
CmbStatLb.Visible = False
CmbStat.Visible = False
DcCmbTypLb.Visible = False
DcCmbTyp.Visible = False
EnCmbTypLb.Visible = False
EnCmbTyp.Visible = False
AddSrch.Visible = False
AddSrchLb.Visible = False
SrchCritLb.Visible = False
SrchCrit.Visible = False
AboutLb.Visible = True
InputLb.Visible = False
Case "Input"
StartDate.Enabled = True
EndDate.Enabled = True
StartDate.Visible = True
EndDate.Visible = True
StartDateLb.Visible = True
EndDateLb.Visible = True
CmbOffLb.Visible = True
CmbOff.Visible = True
CmbStatLb.Visible = True
CmbStat.Visible = True
DcCmbTypLb.Visible = False
DcCmbTyp.Visible = False
EnCmbTypLb.Visible = False
EnCmbTyp.Visible = False
AddSrch.Visible = False
AddSrchLb.Visible = False
SrchCritLb.Visible = False
SrchCrit.Visible = False
AboutLb.Visible = False
InputLb.Visible = True
End Select
End Sub
Code:
Private Sub ListAbout_BeforeUpdate(Cancel As Integer)
If ListAbout = "" Then
DoCmd.SelectObject(acDefault, [ListAbout].ItemsSelected.Item) = "About?"
End If
'ListAbout.BeforeUpdate = ListAbout.DefaultValue = "About?"
End Sub
What I want is for the default selected item in the list, to be About?.
It seems to be ignoring my code.
Any help would be greatly appreciated
![[bigsmile] [bigsmile] [bigsmile]](/data/assets/smilies/bigsmile.gif)
Kind regards
Tiacona