Mar 22, 2004 #1 d1004 Programmer May 9, 2002 78 US Is there a function that could help me separate out the following date into year & month. The date is stored as 20030101 rather than 01/01/2003
Is there a function that could help me separate out the following date into year & month. The date is stored as 20030101 rather than 01/01/2003
Mar 22, 2004 #2 dhookom Programmer Jun 24, 2003 22,497 US To get the year as a value from the string "20030101", use: Val(Left([YourField],4)) The month would be Val(Mid([YourField],5,2)) Duane MS Access MVP Find out how to get great answers faq219-2884. Upvote 0 Downvote
To get the year as a value from the string "20030101", use: Val(Left([YourField],4)) The month would be Val(Mid([YourField],5,2)) Duane MS Access MVP Find out how to get great answers faq219-2884.