Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete with textbox reference
Message
De
21/01/2008 00:54:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Delete with textbox reference
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01283526
Message ID:
01283526
Vues:
62
mconec = SQLSTRINGCONNECT("Driver={Microsoft Access Driver (*.mdb)};Dbq=f:\wet2004;Uid=admin;Pwd=")
IF mconec > 0
   mydelete="delete from logins where logindid=6"
   IF SQLEXEC(mconec,mydelete) < 0
      AERROR(laError)
      MessageBox([Can't delete ] + laError[1,2])
   ENDIF
ELSE
   AERROR(laError)
   MessageBox([Can not connect] + laError[1,2])
ENDIF
To delete record no 6, I use above commnnads
But when I use following command then it do not work
mydelete="delete from logins where logindid=thisform.text1.value"
How to correct above line.

Please help
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform