L
Lez
Hi Guys,
Have a form with a button to fire a number of queries to clear duplicate
data
'to ensure no duplicate items have been added to inventory table we run
these queries
1 looks for duplicates and adds to temp table
DoCmd.OpenQuery "qryStDup1", acViewNormal
2. Deletes duplicates records
DoCmd.OpenQuery "qryStDup2", acViewNormal
3. Appends temp data created at step one back to inventory teble
DoCmd.OpenQuery "qryStDup3", acViewNormal, acEdit
4. Finally deletes temporr data after append has completed
DoCmd.OpenQuery "qryStDup4", acViewNormal 'deletes the temp
duplicates table
Individually each of these queries work fine, however if I include these
behind a button, steps 1 and 2 work fine and step 3 fails to work. If I set
step 3 as an action on it's own behind a button that works fine
My question is...why will it not run as part of the full action under just
one button action button?
Thanks
Lez
Have a form with a button to fire a number of queries to clear duplicate
data
'to ensure no duplicate items have been added to inventory table we run
these queries
1 looks for duplicates and adds to temp table
DoCmd.OpenQuery "qryStDup1", acViewNormal
2. Deletes duplicates records
DoCmd.OpenQuery "qryStDup2", acViewNormal
3. Appends temp data created at step one back to inventory teble
DoCmd.OpenQuery "qryStDup3", acViewNormal, acEdit
4. Finally deletes temporr data after append has completed
DoCmd.OpenQuery "qryStDup4", acViewNormal 'deletes the temp
duplicates table
Individually each of these queries work fine, however if I include these
behind a button, steps 1 and 2 work fine and step 3 fails to work. If I set
step 3 as an action on it's own behind a button that works fine
My question is...why will it not run as part of the full action under just
one button action button?
Thanks
Lez