Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL problem with Access Datatype
Message
De
11/11/1999 16:10:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL problem with Access Datatype
Divers
Thread ID:
00290294
Message ID:
00290294
Vues:
50
Hello,
My program selects data from an Access database and is controlling on the ID field which is of datatype AUTONUMBER. I cannot get an equal comparison no matter what type of statement I've used unless I use a literal (which, of course is not a real option). For example:

Select * from Events where id = 328 works great.

Select * from Events where id = mynumericfield (which contains 328) does not work.

Select * from Events where val(id) = mynumericfield (which contains 328) does not work.

Is there something different about this datatype that I'm not aware of? Anybody have any clues?

Thanks in advance!

Barry

P.S. This is really a VBScript program with a VFP interface (6.0 SP3),but a Select statement is a Select statement (Isn't it?).
If at first you don't succeed......SET STEP ON!
Répondre
Fil
Voir

Click here to load this message in the networking platform