Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What table can't it access?
Message
De
04/11/1998 15:35:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00154499
Message ID:
00154535
Vues:
17
>>>I have a form with a pageframe on it. After I call my router class and come back, it sets page 2 to be active. If I then click on page 1, I get the error "Can't access the selected table". It has an OK button and a HELP button. No SUSPEND button. Using messageboxes, I narrowed down where it happens: between the deactivate of page 2 and the activate of page 1.
>>>
>>>What's in there? I don't have code in any of the other methods of either page, so even if there's an event that runs between the two, there's no code there to run.
>>>
>>>Also, after I click OK, the program continues running fine. If it couldn't find a table, it must not be an important one because there's no visible problems after that.
>>>
>>>I realize this is a hard one to answer without seeing the form, but I'm hoping someone out there has run into this before.
>>>
>>>Thanks,
>>>
>>>-Michelle
>>
>>One possible reason for such message is recollected Combo.Rowsource.
>
>
>There is a combobox on each of the pages. What do you mean by "recollected"?
>
>Thanks,
>
>-Michelle

If you base combo on cursor and recollect records to this cursor (e.g. SELECT_SQL fires from Page.Activate event) then it's safer to 'disconnect' combo from rowsource before SELECT (combo.rowsource="") and restore it after.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform