Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting data from two tables through form
Message
 
To
22/10/2006 09:57:57
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows Millenium
Network:
Windows ME
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01163853
Message ID:
01163855
Views:
8
This message has been marked as the solution to the initial question of the thread.
>I have two tables. Field acno is common. In Table2 number
>of records for acno may be many, but in table1 it is unique. table1 has a field remarks.
>I want to delete all records for acno in table2 if it satisfies the condition:
>
>if table2.acno=table1.acno and remarks.table1='close'
>
>But I failed to do so. Please help.
>
>Chandan
IF UPPER(ALLTRIM(Table1.Remarks )) == [CLOSING]
   DELETE FROM Table2 WHERE AcNo == Table1.AcNo
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform