R
Ryan
Whenever I run the attached code I get a run-time
error '2118' message saying that I need to save the
current field before performing a requery. Can anyone
tell me how to get around this error?
Thanks,
Chad
----------------------------------------------------------
Public Sub UpdateResults()
Dim intIndex As Integer
If Forms!frmResults!lstReports.ItemData(intIndex)= _
"STATEWIDE CRIMINAL" Then
Forms!frmResults!tabSC.Visible = True
Forms!frmResults!subfrmSCResults!lstSCResults.Requery
Forms!frmResults!subfrmSCResults!lstSCResults. _
Selected(0) = True
End If
End sub
-----------------------------------------------------------
error '2118' message saying that I need to save the
current field before performing a requery. Can anyone
tell me how to get around this error?
Thanks,
Chad
----------------------------------------------------------
Public Sub UpdateResults()
Dim intIndex As Integer
If Forms!frmResults!lstReports.ItemData(intIndex)= _
"STATEWIDE CRIMINAL" Then
Forms!frmResults!tabSC.Visible = True
Forms!frmResults!subfrmSCResults!lstSCResults.Requery
Forms!frmResults!subfrmSCResults!lstSCResults. _
Selected(0) = True
End If
End sub
-----------------------------------------------------------