Hi Guy's, good day to you all, for some reason that i can't figure out why a date won't add to a date field!!!
Hope you can see something i can't see
XL Sheet Cell Value Is: Tue 08/04/2025
(Set The Recordset)
Set rs = CurrentDb.OpenRecordset("SELECT * FROM tblEdit WHERE 1 = 0") 'you don't use these values so load an empty recordset on the table
(Now remove Tue from XL cell)
strDate = CDate(Right(xlSHT.Cells(i, 11).Value, Len(xlSHT.Cells(i, 11).Value) - InStr(xlSHT.Cells(i, 11).Value, " "))) ' Ready Date
(Get Friday Prior Date)
dtShipDate = DateAdd("d", -1 - Weekday(strDate), strDate) ' Add To Fridays Date Prior To strDate (Ready Date)
(Set Main Form Date)
Forms!frmMainMenu!frmIndex1!cboShipmentDateIndex1 = dtShipDate ' Adding dtShipDate Fine
Debug.Print "Date On XL Sheet: " & strDate; vbCrLf & _
"Ship Date: " & dtShipDate
Immediate Window
Date On XL Sheet: 08/04/2025
Ship Date: 04/04/2025
Now Add To ShipmentDate Field
With rs
.AddNew
!ShipmentDate = dtShipDate
dtShipDate Not Adding To ShipmentDate Field ???
spent a while stepping through this, it should be simple
Sorry not added code tags, but didn't because of short snips
If i need to add more, can add more and would put into code tags
thank you guys