I want to have a field have an expression like this: IIf(Month([Field1])=10,"10/31/"+(year([Field1])+1),"0"). Basically, Field2 needs to look at Field1's date and whatever month has been entered, it needs to return that month, the last day of that month, and one year from the year entered. Examples:
Entered in Field1: Returned in Field2:
10/22/2013 10/31/2014
5/13/2013 5/31/2014
4/2/2011 4/30/2012
I run into a couple problems. One, February. Will it be the 28th or the 29th? Two, I get a Type error when the expression returns true, probably because I have mixed value types in the expression. Is there a way around this? Is there a better expression for what I'm trying to accomplish??
I'm new to Access. Can you do lots of nested If statements in Access like you can in Excel? or would it maybe be easier to set the main table up in Excel and work off of that, but import it into Access as a linked table to create queries and reports from? I've just come across problems with dates not showing up in a date format in Access if they're a calculated field in Excel. Any opinions/suggestions would be GREATLY appreciated! This will end up being a very large file so I want to do it the best way possible!