hey all,
sorry to bother yis, i'm getting a syntax error in an update here's the code:
rsteamstoday.open sqlstr,dbcon
While rsTeamsToday.EOF = False
chkdate = rsTeamsToday.Fields("datecreated"
If Day(chkdate) = Day(today) And Month(chkdate) = Month(today) And Year(today) = Year(chkdate) Then
TeamsDayCnt = TeamsDayCnt + 1
tid = rsTeamsToday.Fields("team_id"
***** dbcon1.Execute ("UPDATE teams SET day='yes' WHERE team_id=" & tid) *****
End If
rsTeamsToday.MoveNext
Wend
the dbcon1.execute gives me the error, and when i highlight it, it reads as : (UPDATE teams set day='ye..."UPDATE teams SET day='yes' WHERE team_id=45"
????
any help is very much appreciated,
thanks guys
sorry to bother yis, i'm getting a syntax error in an update here's the code:
rsteamstoday.open sqlstr,dbcon
While rsTeamsToday.EOF = False
chkdate = rsTeamsToday.Fields("datecreated"
If Day(chkdate) = Day(today) And Month(chkdate) = Month(today) And Year(today) = Year(chkdate) Then
TeamsDayCnt = TeamsDayCnt + 1
tid = rsTeamsToday.Fields("team_id"
***** dbcon1.Execute ("UPDATE teams SET day='yes' WHERE team_id=" & tid) *****
End If
rsTeamsToday.MoveNext
Wend
the dbcon1.execute gives me the error, and when i highlight it, it reads as : (UPDATE teams set day='ye..."UPDATE teams SET day='yes' WHERE team_id=45"
????
any help is very much appreciated,
thanks guys