Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local view returning syntax error
Message
 
À
03/08/1998 12:00:52
Mark Denby
Bradford Metropolitan Council
Bradford, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00123564
Message ID:
00123588
Vues:
23
Mark,

If you want a parameter in your view, you have to use a ? to tell VFP that it's a memory variable, not a field. Try this:
SELECT *;
  FROM build!sections;
  WHERE Sections.divlink = ?m.divlink
>Hi everybody,
>
>I've got a very simple updateable view which when I update, either by using tableupdate or just moving the record pointer is returning error 10 - syntax error.
>
>the view looks like this :-
>
>SELECT *;
> FROM build!sections;
> WHERE Sections.divlink = m.divlink
>
>the sections table looks like this:-
>
>divlink char(10)
>seclink char(10)
>desc char(40)
>
>I've got a primary index on the seclink field and in the view it's set as the key field, the other two being marked as updateable. I've tried all the combinations of the sql where clauses without success.
>
>I've created many updateable views in the past, most of which were more complex than this one!, without any problems.
>
>So am I missing something fundamental or is it just because it's Monday
>
>Many thanks
>
>Mark
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform