Versions des environnements
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement