Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repalce and Delete Commands Not Working - help needed
Message
From
13/10/1998 05:18:08
 
 
To
13/10/1998 05:01:28
Yin Min Chen
Nec Home Electronics(M) Sdn Bhd
Sungai Petani, Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146137
Message ID:
00146142
Views:
27
>Because Delete does not delete the records in my detail table which I use foriegn key to cascade delete my detail table.
Ok.
You want to change the primary key to 1 of the unique string by calling SYS(2015)?
Ok, but as I can see, you first replace primary key and then delete it... delete command cannot find it because it has new value (SYS(2015))

Try :
TmpUserCode = SYS(2015)
replace usercode with TmpUserCode
delete from tsmtranh where usercode = TmpUserCode
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform