Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot access selected table error? Huh?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00490301
Message ID:
00490459
Vues:
13
>I have two forms, I have a listbox on the main form with the following code in the RowSource property and Fields for my RowSource Type:
>
>
>IIF(attempts.EXT="YES",alltrim(str(attempts.seqno))+"  "+attempts.placed+" via "+ATTEMPTS.ROUTE+"  Extubated -  "+ attempts.ext_reas,alltrim(str(attempts.seqno))+"  " +attempts.placed+" via "+attempts.ROUTE)
><\pre>
>
>What happens is, I get the error "Cannot access selected table" when I leave the form that contains the listbox and return to the form. After I get this error my listbox disappears from the form so I am quite sure Attempts table is being not being selected and that's when error occurs.
>
>Any ideas? Thanks.

<pre>I have found this to happen when using tables or curors as source for list boxes.  The only cure I have found for it is to always use arrays (I added an array property to my list box class and just populate it, as I always have it already pointed there).
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform