B
Bob V
This part of my code is making the blank fields [DayNo] come up with this
date: Sat 30 Dec 1899 12.00am
Addition_ItMdt.Fields, Day No is blank in my Tables but when I use this code
to Distribute the Invoices to there clients I am getting this date error,
The fields that have a date in them work properly....Please any suggestions
to what I can do......Bob
This is the only part of the code that has "DayNo"
Etc Etc
Do While Not recAddition_ItMdt.EOF = True
With recAdditionCharge
.AddNew
.Fields("InvoiceID") = lngInvoiceID
.Fields("ChargeID") =
Nz(recAddition_ItMdt.Fields("ChargeID"), 0)
.Fields("HorseID") =
Nz(recAddition_ItMdt.Fields("HorseID"), 0)
.Fields("DayNo") = Nz(recAddition_ItMdt.Fields("DayNo"),
0)
.Fields("AdditionCharge") =
Nz(recAddition_ItMdt.Fields("AdditionCharge"), "")
.Fields("AdditionChargeAmount") =
Nz(recAddition_ItMdt.Fields("AdditionChargeAmount"), 0)
.Update
End With
EtcEtc
date: Sat 30 Dec 1899 12.00am
Addition_ItMdt.Fields, Day No is blank in my Tables but when I use this code
to Distribute the Invoices to there clients I am getting this date error,
The fields that have a date in them work properly....Please any suggestions
to what I can do......Bob
This is the only part of the code that has "DayNo"
Etc Etc
Do While Not recAddition_ItMdt.EOF = True
With recAdditionCharge
.AddNew
.Fields("InvoiceID") = lngInvoiceID
.Fields("ChargeID") =
Nz(recAddition_ItMdt.Fields("ChargeID"), 0)
.Fields("HorseID") =
Nz(recAddition_ItMdt.Fields("HorseID"), 0)
.Fields("DayNo") = Nz(recAddition_ItMdt.Fields("DayNo"),
0)
.Fields("AdditionCharge") =
Nz(recAddition_ItMdt.Fields("AdditionCharge"), "")
.Fields("AdditionChargeAmount") =
Nz(recAddition_ItMdt.Fields("AdditionChargeAmount"), 0)
.Update
End With
EtcEtc