A
Access Rookie
My goal is to automatically update the End Date to display the create date
from a record previously reported. For example the end date for the first
record listed below should be 9/24/2009 12:41:00 PM and the end date for the
third record listed below should be 8/21/2009 9:00:00 AM.
ID CATEGORY RANGE CREATE_DATE END_DATE
3426 Service 24 months 9/15/2009 9:35:00 AM
3426 Service 24 months 9/24/2009 12:41:00 PM
3426 Service 36 months 8/20/2009 12:23:00 PM
3426 Service 36 months 8/21/2009 9:00:00 AM
I have the query listed below but it does not work. I keep getting the
following type conversion failure: Microsoft Office Access didn't update
41575 fields due to type conversion failure.
UPDATE TBL_EXTRACT SET Tbl_EXTRACT.END_DATE =
DMin("CREATE_DATE","[TBL_EXTRACT]","ID=" & [ID] & " AND CREATE_DATE>" &
Format([CREATE_DATE],"\#yyyy-mm-dd\#") & "AND RANGE = """ & [RANGE] & """" &
"AND CATEGORY = """ & [CATEGORY] & """")
WHERE (((Tbl_EXTRACT.END_DATE) Is Null) AND ((Tbl_EXTRACT.CATEGORY) Is Not
Null));
Any assistance proved will be greatly appreciated.
from a record previously reported. For example the end date for the first
record listed below should be 9/24/2009 12:41:00 PM and the end date for the
third record listed below should be 8/21/2009 9:00:00 AM.
ID CATEGORY RANGE CREATE_DATE END_DATE
3426 Service 24 months 9/15/2009 9:35:00 AM
3426 Service 24 months 9/24/2009 12:41:00 PM
3426 Service 36 months 8/20/2009 12:23:00 PM
3426 Service 36 months 8/21/2009 9:00:00 AM
I have the query listed below but it does not work. I keep getting the
following type conversion failure: Microsoft Office Access didn't update
41575 fields due to type conversion failure.
UPDATE TBL_EXTRACT SET Tbl_EXTRACT.END_DATE =
DMin("CREATE_DATE","[TBL_EXTRACT]","ID=" & [ID] & " AND CREATE_DATE>" &
Format([CREATE_DATE],"\#yyyy-mm-dd\#") & "AND RANGE = """ & [RANGE] & """" &
"AND CATEGORY = """ & [CATEGORY] & """")
WHERE (((Tbl_EXTRACT.END_DATE) Is Null) AND ((Tbl_EXTRACT.CATEGORY) Is Not
Null));
Any assistance proved will be greatly appreciated.