Hello, how can I combine two text fields and format them as a date.
Text Field 1: Jan
Text Field 2: 2014
Desired Output Jan-2014 (being an actual date field)
Hello, how can I combine two text fields and format them as a date.
Text Field 1: Jan
Text Field 2: 2014
Desired Output Jan-2014 (being an actual date field)
[Field1] & "-" & [Field2]
The result will be a string, not a true date. If you need a true date then won't look like that.
DateSerial([field2],[field1],1)
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thanks June7, I've tried Date Serial but it's requiring that I put a "day" field in which I presume is the "1" in your example. Doing that through an #Error in the output though. Any thoughts?
Ooops, DateSerial() doesn't recognize the alpha month. Try:
CDate(Field1 & "/1/" & Field2)
However, that will error if any field is Null.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.