Question : Too few parameters

I keep getting an error on the 2nd line of this code, error too few parameters, any know why?
I use this type of code a lot and therefore can't see what could be wrong.

DoCmd.DeleteObject acTable, "tbl_CustomerConcernsCopy"
CurrentDb.Execute "qry_CustomerConcerns", dbFailOnError

Answer : Too few parameters

You are missing the Dots  inside the With structure ... dots in from of the four commands

    With DoCmd
        .SetWarnings False
        .DeleteObject acTable, "tbl_CustomerConcernsCopy"
        .OpenQuery "qry_CustomerConcerns"     ' Prompt will occur here
        .SetWarnings True
    End With
Random Solutions  
 
programming4us programming4us