Hi
I am trying to update a date field in my table but some how this simple code
does not work, I know the select work because if I write the fields, it will
show the data from the table but why the update does not work?
<%
Set ConnGallery = Server.CreateOb ject("ADODB.Con nection")
ConnGallery.Ope n ConnectionStrin g
Set cmdTemp = Server.CreateOb ject("ADODB.Com mand")
Set CmdUpdateAd = Server.CreateOb ject("ADODB.Rec ordset")
cmdTemp.Command Text = "SELECT Ads.* FROM Ads WHERE Advertiser=0 "
cmdTemp.Command Type = 1
Set cmdTemp.ActiveC onnection = ConnGallery
CmdUpdateAd.Ope n cmdTemp, , 1, 3
CmdUpdateAd.Fie lds("Ad_Expires ") = " "
CmdUpdateAd.Upd ate
CmdUpdateAd.Clo se
response.Write ("hej")
%>