Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot access the selected table Error 1152
Message
De
10/02/1999 00:36:10
 
 
À
09/02/1999 23:57:23
Carol Adler
U.S. Army Kwajalein
Apo, Iles Marshall
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00185749
Message ID:
00185839
Vues:
38
>
>I put Do finance_report.prg in a menu option for the application to split it out. If I run it before opening any forms, it does great, but the form won't come up because the file is already in use. If I get out and run the form first, it comes up like a champ, but then the report won't run because either the table can't be found, is already in use, etc.
>

First thing I might try is renaming the table 'Itenerary Details' to 'IteneraryDetails', removing the space...

Even though VFP lets you do this, I don't think it's a good idea because much of SQL syntax looks at spaces to determine alias.

If I had to guess at what is happening, I would guess that the view that is based on the two previous views is crashing, because the SQL engine is treating the space in the table name as a table and its alias. Since both underlying tables are using this same syntax, the SQL statement is trying to open two tables with the same alias, and it's getting confused as hell.

Alternatively, you could redefine the 3rd view to not use the first two, but build the SQL entirely from scratch.

Also, unless you'll need to update this cursor (I don't think it's possible anyway), you don't really need to make this a view, you could just select into a cursor.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform