Access 2013 Calculated Date Columns in Table

I have an access table that I'm trying to append to a SharePoint list. The SP list has two calculated columns:
 CurrentMonth: IIf(Str([Today])=Str([Due Date]),1,0)
 PastDue:IIf([Today]>[Due Date],1,0)

 What is the correct expression for my Access calculated columns?
shieldscoAsked:
Who is Participating?
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:
try

CurrentMonth: IIf(Date()=[Due Date],1,0)
  PastDue:IIf(Date() >[Due Date],1,0)
shieldscoAuthor Commented:
Error Message :The expression cannot be used in a calculated table column
Rey Obrero (Capricorn1)Commented:
are your table in access db?
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

shieldscoAuthor Commented:
yes it's table expression
shieldscoAuthor Commented:
yes Access 2013 table
Rey Obrero (Capricorn1)Commented:
you have to do that in a query
shieldscoAuthor Commented:
Why not in a table as a calculated column
Rey Obrero (Capricorn1)Commented:
so you want to use data macro?
upload a copy of your db
shieldscoAuthor Commented:
Rey Obrero (Capricorn1)Commented:
in the expression to calculate the values for Calculated field, you can only use the fields on the same table and hard coded values,
values such as Date() are not permitted.

another way to achieve the goal is to use DataMacro, see this link for reference
https://msdn.microsoft.com/en-us/library/office/ff973807(v=office.14).aspx
shieldscoAuthor Commented:
Since I have no experience with Data Macros how would the following be created

 CurrentMonth: IIf(Str([Today])=Str([Due Date]),1,0)
  PastDue:IIf([Today]>[Due Date],1,0)
Rey Obrero (Capricorn1)Commented:
like what i said, you can only refer to Fields in the same table.
a work around is to create a new Date/time field , call it CurrDate
- to populate the field CurrDate with the current date, you need to run an update query

Update tableName set [CurrDate]= Date()

now you can use this expressions

 CurrentMonth: IIf([CurrDate]=[Due Date],1,0)
  PastDue:IIf([CurrDate]>[Due Date],1,0)

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
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 SharePoint

From novice to tech pro — start learning today.