The following is the code:
Private Sub Form_Load()
'Dim lowerLimit As String
fMainForm.MousePointer = vbHourglass
txtFilter = partNumber
'vacPart.FieldValue("PRTNUM_01") = txtFilter
vacPart.FieldValue(0) = txtFilter
vacPart.GetGreaterorEqual
vacPart.GetPrevious
vacPart.CacheRejectMax = 65535
vacPart.GetFirst
txtFilter_Change
End Sub
where vacPart is the data source control. The DDFPath property, and other properties of vacPart are set at startup (program time). There is a Pervasive Bound list control, valPart, that is used to display the PRTNUM_01 field of all the records.
I changed the way to refer to that field, from "PRTNUM_01" to 0. This can reduce the warning. But the result is the same: works in
VB IDE but does not work as an executable.
The RefreshLocations field is set to true. I tried to set it to false. This can eliminate the warnings, but the valPart list control is still empty when running outside the
VB IDE.