Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete with textbox reference
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01283526
Message ID:
01283531
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform