date/query problem

B

Billy

have an update query
i'd guess something like

update TableName SET [DateTo] = DateSerial(Year
([DateTo]),Month([DateTo]),31) WHERE (Month([DateTo]) Not
In (2,4,6,9,11)) AND (Day([DateTo])=30)

limits dates to those whose month isn't 2,4,6,9,11 (ie not
february,april,etc) in other words only months which can
have 31 days, and then changes any date which is the 30th
to 31st
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top