Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete with textbox reference
Message
From
21/01/2008 00:54:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Delete with textbox reference
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01283526
Message ID:
01283526
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform