Delete all associated records

w0od0o

Registered User.
Local time
Today, 14:18
Joined
Jan 13, 2009
Messages
87
Hi all,

I am trying to create a cancel type button that will remove data that has been added so far, my problem is i have 2 queries on 1 form and i can only seem to get it to delete the records associated with the query that the cursor is in (if that makes sense)

All help welcome

w0od0o
 
You can move the cursor using a method called SetFocus.
 
so are you suggesting i move the cursor to the record holding the sub-record and this will cascade through?

so dont want to spend hours trying to figure it out
 
Are you trying to undo?

It would depend if you have set referential integrity on the joins?
 
i have set referntial integrity, but at the moment whether its undo or delete it onlt removes the data where the cursor is,

what i have is a query that Dmax's a quote number on load and i want all associated data removed if the user decides that they dont want to continue.

thanks for your help

w0od0o
 
You may need to refresh and/or requery the other form.

Did you set Cascade Delete?
 

Users who are viewing this thread

Back
Top Bottom