Re: Update Database (mdb) script
- From: "Dave Patrick" <DSPatrick@xxxxxxxxxxxxxxxx>
- Date: Mon, 10 Jul 2006 15:02:58 -0600
Dim cnn, dbPath, strSQL
dbPath = "c:\data\access\test.mdb"
Set cnn = CreateObject("ADODB.Connection")
Set Rs1 = CreateObject("ADODB.Recordset")
cnn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & dbPath
strSQL = "UPDATE Table1 SET Field1 = 'aaa', Field2 = 123, Field3 = 456 " _
& "WHERE (((ChkBox)=0)); "
cnn.Execute strSQL
cnn.close
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Cadstillo" wrote:
| How do you update all of the records in an Access (.mdb) table where the
| checkboxes are not checked?
| --
| Cadstillo
|
.
- Prev by Date: Re: wmic
- Next by Date: Re: Read in text to array help
- Previous by thread: Re: Update Database (mdb) script
- Next by thread: Re: Update Database (mdb) script
- Index(es):
Relevant Pages
|