Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a trigger to delete from another file

Status
Not open for further replies.

JordanCN

IS-IT--Management
Apr 12, 2006
77
US
I have an old package that has a bug in it. The package runs on P.SQL 200i SP4. It has an order entry screen that enters records into one table called 'Order Master' whose file name is ORDMST.DAT and whose unique ID are the fields:

Order
Line
Delivery

When data is entered into this table the program also populates another table called 'Requirement Details' with portions of this data such as the Order, Line, Delivery, Part, Quantity, etc. 'Requirement Detail' has a file name REQDET.DAT.

The documented bug is that when you delete an item through the interface from 'Order Master' it does not delete the record from 'Requirement Detail' and this causes a problem because they system continues to plan for the item.

How do I create a trigger on P.SQL that says on a delete from 'Order Master' delete the record from 'Requirement Detail' that has the same Order, Line, and Delivery fields.
 
You can't. PSQL Triggers are only fired by the SQL engine. If your app is Btrieve based, triggers won't fire and could actually cause an error 149.


Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top