Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 5 but record is NOT out of range!
Message
De
15/08/2008 12:49:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01339145
Message ID:
01339167
Vues:
19
>What is the value of enrollview.dateid right before Refresh()?

Placing a a textbox with enrollview.dateid shows the correct answer. (In this case, 511, but I'm sure that doesn't help. <g>)
Placing a grid shows the dateview records are present too.
NODEFAULT in combobox.refresh suppresses the error. And the data.
Two other comboboxes set up similarly (dateview replaced with programview/schoolview) work properly.

This was working previously, the error started when I was trying to address other requery() issues.

>>I have a combobox on a form, and the combobox's refresh method throws Error 5: Record is out of range.
>>
>>BoundColumn = 2
>>BoundTo = .T.
>>Controlsource = enrollview.dateid (int FK to Date table)
>>Rowsource = dateview.date,dateid
>>Rowsourcetype = 6 - Fields
>>
>>The combobox and Dateview are requeried prior to the Refresh().
>>Dateview has fewer records than the value of dateid, but the dateid value is present.
>>
>>I've recreated the tables behind both enrollview and dateview. If I reset BoundTo to False, the error quits, but the result is wrong. I don't know what else to try.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform