Hi,
I have a date field that is defined in mainframe as mm/dd/yyyy and it represents the Add Date of a vendor. I am automating a process that will update a table of vendors with all new vendors have been added since the last time the process ran. Everytime the process runs I store the current date and look in a history table for the previous run date and pull all vendors that have been added between those dates. The problem that can be encountered is since the timestamp is not in the Add Date I could miss some vendors added the same day the process was run but after the process ran.
I'd like to create a 1 time query to update all the add dates to have their mm/dd/yyyy add date and concatenate " 12:00:00 AM" to the date. I've changed the date format to General and created an update query with this value in the "Update To:" [tbl_Vendor_Tracker_AddDateTime].[Added_Date] & " 12:00:00 AM" but it only leaves the mm/dd/yyyy - so something is wrong with that.
Going forward when pulling the new vendors from the mainframe, I will update their Add Date mm/dd/yyyy to also concantenate the TIME from NOW() so that all vendors in the table will be "mm/dd/yyyy hh:mm:ss AM".
Can someone point me in the right direction of the correct syntax?
Thanks!
I have a date field that is defined in mainframe as mm/dd/yyyy and it represents the Add Date of a vendor. I am automating a process that will update a table of vendors with all new vendors have been added since the last time the process ran. Everytime the process runs I store the current date and look in a history table for the previous run date and pull all vendors that have been added between those dates. The problem that can be encountered is since the timestamp is not in the Add Date I could miss some vendors added the same day the process was run but after the process ran.
I'd like to create a 1 time query to update all the add dates to have their mm/dd/yyyy add date and concatenate " 12:00:00 AM" to the date. I've changed the date format to General and created an update query with this value in the "Update To:" [tbl_Vendor_Tracker_AddDateTime].[Added_Date] & " 12:00:00 AM" but it only leaves the mm/dd/yyyy - so something is wrong with that.
Going forward when pulling the new vendors from the mainframe, I will update their Add Date mm/dd/yyyy to also concantenate the TIME from NOW() so that all vendors in the table will be "mm/dd/yyyy hh:mm:ss AM".
Can someone point me in the right direction of the correct syntax?
Thanks!