S
sue
Hi everyone,
How do I delete all rows in a table through code?
Sue
How do I delete all rows in a table through code?
Sue
message news:[email protected]...-----Original Message-----
Hi Sue,
Dim strSql as String
strSql = "Delete From yourTableHere"
CurrentDb.Execute strSql, dbFailOnError
--
HTH
Dan Artuso, Access MVP
"sue" <[email protected]> wrote in
message news:[email protected]...-----Original Message-----
Hi,
Do you mean you want to update the all rows of the datelastsync
field to today's date?
Or do you want to somehow identify one row to be updated?
If all rows:
Dim strSql as String
strSql = "Update tblastsync Set datelastsync = #" & Date () & "#"
CurrentDb.Execute strSql, dbFailOnError
--
HTH
Dan Artuso, Access MVP
"Sue" <[email protected]> wrote in