T
TG(Denmark)
I want to delete records in a subform, the recordsource for the form
is:
SELECT * FROM (TEST INNER JOIN SAMPLE ON
TEST.SAMPLE=SAMPLE.ID_NUMERIC) INNER JOIN RESULT ON
TEST.TEST_NUMBER=RESULT.TEST_NUMBER WHERE
(((SAMPLE.JOB_NAME)=forms.frmJobSampleTestResult.Job)) ORDER BY
RESULT.TEST_NUMBER, RESULT.ORDER_NUMBER;
I have tried with this:
DoCmd.RunSQL "DELETE * FROM (TEST INNER JOIN SAMPLE ON
TEST.SAMPLE=SAMPLE.ID_NUMERIC) INNER JOIN RESULT ON
TEST.TEST_NUMBER=RESULT.TEST_NUMBER WHERE
(((SAMPLE.JOB_NAME)=forms.frmJobSampleTestResult.Job));"
but appearently this is not the right syntax, maybe it shoud be
something like:
DELETE * FROM Test WHERE/HAVING???
Can anyone help me?
TG(DK)
is:
SELECT * FROM (TEST INNER JOIN SAMPLE ON
TEST.SAMPLE=SAMPLE.ID_NUMERIC) INNER JOIN RESULT ON
TEST.TEST_NUMBER=RESULT.TEST_NUMBER WHERE
(((SAMPLE.JOB_NAME)=forms.frmJobSampleTestResult.Job)) ORDER BY
RESULT.TEST_NUMBER, RESULT.ORDER_NUMBER;
I have tried with this:
DoCmd.RunSQL "DELETE * FROM (TEST INNER JOIN SAMPLE ON
TEST.SAMPLE=SAMPLE.ID_NUMERIC) INNER JOIN RESULT ON
TEST.TEST_NUMBER=RESULT.TEST_NUMBER WHERE
(((SAMPLE.JOB_NAME)=forms.frmJobSampleTestResult.Job));"
but appearently this is not the right syntax, maybe it shoud be
something like:
DELETE * FROM Test WHERE/HAVING???
Can anyone help me?
TG(DK)