ions
01-23-2008, 11:40 AM
Dear Access Expert
The following code marked 'BREAKS DOWN!!! INCORRECT is giving me problems.
Forms(FormName).ExclusionDaysANDFlights.Requery
Set rcdSet = Forms(FormName).ExclusionDaysANDFlights.Form.Recor dsetClone
'BREAKS DOWN!!! INCORRECT
If rcdSet.EOF And rcdSet.BOF Then
Exit Function
End If
rcdSet.MoveFirst 'It's a recordset Clone so make sure you start from the top.
It appears Access Jet is not updating the EOF and BOF attributes as I change the recordsetClone. If there is a record in the RecordSetCLone EOF and BOF sometimes remain TRUE... which indicates an empty recordSet. Sometimes if the record set is EMpty EOF will be False but BOF will be True.
What is happening here? Some Access quirk?
For example
The following code marked 'BREAKS DOWN!!! INCORRECT is giving me problems.
Forms(FormName).ExclusionDaysANDFlights.Requery
Set rcdSet = Forms(FormName).ExclusionDaysANDFlights.Form.Recor dsetClone
'BREAKS DOWN!!! INCORRECT
If rcdSet.EOF And rcdSet.BOF Then
Exit Function
End If
rcdSet.MoveFirst 'It's a recordset Clone so make sure you start from the top.
It appears Access Jet is not updating the EOF and BOF attributes as I change the recordsetClone. If there is a record in the RecordSetCLone EOF and BOF sometimes remain TRUE... which indicates an empty recordSet. Sometimes if the record set is EMpty EOF will be False but BOF will be True.
What is happening here? Some Access quirk?
For example