This blog is for Accountants who would like to empower themselves by being able to create applications for the company/companies they work for without full reliance on IT professionals. Accountants should know the type of data their company should collect and use the data to analyse and add value to the company's bottom line. They should be able create data collection applications that can be used across their organisation.
Saturday, January 14, 2017
Delete query for last record in the table
Sometimes you would like to format a table for reporting purposes.
The last row would usually be the sum of all the above records.
To delete the last row and append a new sum, you can use this query.
DoCmd.RunSQL "" & _
"Delete [PPE c].ID" & _
" FROM [PPE c]" & _
" WHERE ((([PPE c].ID)=DMax(""[ID]"",""[PPE C]"")));"
Labels:
delete query,
PPE table
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment