cmdButton to clear contents of a column

Neil_Pattison

Registered User.
Local time
Today, 17:19
Joined
Aug 24, 2005
Messages
73
Is there a way i can use a command button on a form to clear the contents of a yes/no column in a table.

I can do this via an update query but I would prefer it if I could do it without getting any propmts warning of the update.

Any help would be greatly appreciated
 
Last edited:
Wrap your update command in:
Code:
Docmd.setwarnings false
  docmd.runsql strSQL
docmd.setwarnings true
This will prevent the warnings from being shown for that query.
 

Users who are viewing this thread

Back
Top Bottom