Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete with textbox reference
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01283526
Message ID:
01283531
Vues:
16
Hi Tariq,

you can use bind parameter:
=SQLEXEC(mconec,"delete from logins where logindid=?thisform.text1.value")
* OR
liID=thisform.text1.value
=SQLEXEC(mconec,"delete from logins where logindid=?liID")

>
MartinaJ

>
>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform