Hi Perry,
Yes it is a bug and a pain in the butt at that!
The only way that I have been able to get around this is to add this code to a script object called VBGlobal for lists and combos.
I call the VBGlobal.PutData() just before a submit and a VBGlobal.GetData() on entering a page hope this helps
If Not VBGlobal.bFormLoaded Then
VBGlobal.GetData()
VBGlobal.bFormLoaded = True
End If
'start of vbglobal
Dim bFormLoaded
Sub GetData()
'This takes the values of all the combo boxes when submitted and puts them back as there is a bug in adobe forms
If DataHolder.Text <> "" Then
Execute(DataHolder.Text)
End If
End Sub
Sub PutData()
Dim Control
Dim iThisForm
Dim strControlList
Dim sQuote
sQuote = Chr(34)
For iThisForm = 0 To 5
For Each Control in Form.Controls(iThisForm).Controls
If Left(Control.Name, 3) = "cbo" or Left(Control.Name, 3) = "lst" Then
If Control.Name <> "cboSearchType" then
strControlList = strControlList & Control.Name & ".ChoiceList = " & sQuote & Control.ChoiceList & sQuote & ":" & _
Control.Name & ".CurrentSelection = " & Control.CurrentSelection & ":"
End if
End If
Next
Next
strControlList = Replace(strControlList, vbNewLine, sQuote & " & vbNewLine & " & sQuote)
strControlList = Replace(strControlList, vbLF, sQuote & " & vbLF & " & sQuote)
DataHolder.Text = strControlList
End Sub