Access - Delete Dates Cells Formatted as Short Text

I have a [Date] field that is Short Text that was derived with the formula:


From an original field [Dt].

I now need to remove from the [Date] field any dates prior to 1/2015, but am unable to successfully do this with < 1/2015 as the criteria.

Please advise.

Thank you.
exp vgAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
are deleting the records with date < 1/2015 or you want to clear the field with values < 1/2015

btw, did you try   < "1/2015"

also try

where format([date],"yyyymm") < "201501"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
exp vgAuthor Commented:
Since the format of the date field I created was m/yyyy

I tried this

Where Format([Date],"m/yyyy") < "1/2015"

And got an error on syntax.
Rey Obrero (Capricorn1)Commented:
try the other format i posted above

where format([date],"yyyymm") < "201501"
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

exp vgAuthor Commented:
I want to delete the fields less than < 1/2015

Thank you.
exp vgAuthor Commented:
Forgot to mention - I tried the first one first - and received the same syntax error. I then tried the one I created to see if that would work.

Both did not.
Rey Obrero (Capricorn1)Commented:
you can NOT delete a field only with criteria, you will be deleting the RECORD.

you can DELETE the values of a field. By setting the value to NULL or a empty string ""

what you posted is not the same as i have posted. Look carefully
exp vgAuthor Commented:
Let me clarify - delete the record where this date criteria is met.

I tried the one you posted as well.

Both did not work.

This is what I tried from you:

where format([date],"yyyymm") < "201501"
Rey Obrero (Capricorn1)Commented:
upload a copy of the db.
exp vgAuthor Commented:
Unfortunately I cannot - this is sensitive data.

I actually just thought of this, I back tracked, and as mentioned in my question post, the 1/2015 was created from an original [Dt] field - which is in Date format.

I tried

< 1/1/2015, since the records will be the same for the calculated [Date] field that is in Short Text format. However, the records with dates less than 1/1/2015 are still not deleted.

Hope this makes sense.
exp vgAuthor Commented:
Got it to work by deleting from the source date file that the new date field was formatted off of.

I do thank you for your suggestions.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.