Hi,
I am trying to update a table that has all the dates (formatted short date 99/99/9999). the idea is that I put in a start date in one text box formatted the same way and and enddate in another. I use a loop
dim z as date
for z= begdt to enddt
db.execute "update " & room & " set [EventName] = '" & Text 88 & "' where [EventDate] = #" & z & "#"
next z
It always puts the first date in the table (room is tablename). It will not put the next dates in the range in there. Something is changing the format of the date or something when it loops the second time. I cannot figure it out. I've tried format(z, "mm/dd/yyyy") , put it into another varialbe tried z=z+1 when z was not in a loop. Nothing works. Any ideas? Thanks
I am trying to update a table that has all the dates (formatted short date 99/99/9999). the idea is that I put in a start date in one text box formatted the same way and and enddate in another. I use a loop
dim z as date
for z= begdt to enddt
db.execute "update " & room & " set [EventName] = '" & Text 88 & "' where [EventDate] = #" & z & "#"
next z
It always puts the first date in the table (room is tablename). It will not put the next dates in the range in there. Something is changing the format of the date or something when it loops the second time. I cannot figure it out. I've tried format(z, "mm/dd/yyyy") , put it into another varialbe tried z=z+1 when z was not in a loop. Nothing works. Any ideas? Thanks