Hi all,
I'm brand new here and this is my first post. Hopefully I make sense and someone here can steer me in the right direction.
I was given a database that has a table with a memo field. In this memo field there are multiple dates followed by some text and then another date. I need to be able to extract those dates and add them separately to a new table so I can get a Datediff calculation. Example:
Submitted by Joe: 1/15/2015 text text text text Approved by Mike: 2/10/15.
I would need to grab 1/15/2015 and 2/10/15 and use datediff to give me the difference between dates. My problem is how to extract the two dates.
There is no standard pattern or delimiter that precedes or proceeds the dates. Is there a VBA code that could look through the memo field and grab the numerical characters and extract them to a new table? Maybe using the "/" as a delimiter? I have no idea and would appreciate any help.
I'm brand new here and this is my first post. Hopefully I make sense and someone here can steer me in the right direction.
I was given a database that has a table with a memo field. In this memo field there are multiple dates followed by some text and then another date. I need to be able to extract those dates and add them separately to a new table so I can get a Datediff calculation. Example:
Submitted by Joe: 1/15/2015 text text text text Approved by Mike: 2/10/15.
I would need to grab 1/15/2015 and 2/10/15 and use datediff to give me the difference between dates. My problem is how to extract the two dates.
There is no standard pattern or delimiter that precedes or proceeds the dates. Is there a VBA code that could look through the memo field and grab the numerical characters and extract them to a new table? Maybe using the "/" as a delimiter? I have no idea and would appreciate any help.
Last edited: