I have a table (tblProdn) that I append to daily. The original data is linked to an Excel Sheet. I have two new fields in the tblProdn table that I would like to update with two fields in the previous record as shown (last ticket and last time)
Customer Ticket Time LastTicket LastTime
ABC Co 8005 4/1/05 4:30 PM 8004 ...
DEF Co 8006 4/1/05 5:55 PM 8005 4/1/5 4:30 PM
ABC Co 8008 4/1/05 8:19 PM 8006 4/1/5 5:55 PM
There is no ID field, as the Ticket is a unique field. Also, after the data is appended, I have to delete some records that are invalid (ie. Null values or void invoices with null times, etc) which is why I do not have consecutive numbers.
I've followed some of the ideas on here, but nothing seems to work for me including joining the table to itself.
Any new ideas?
Thanks!
Barb E.
Customer Ticket Time LastTicket LastTime
ABC Co 8005 4/1/05 4:30 PM 8004 ...
DEF Co 8006 4/1/05 5:55 PM 8005 4/1/5 4:30 PM
ABC Co 8008 4/1/05 8:19 PM 8006 4/1/5 5:55 PM
There is no ID field, as the Ticket is a unique field. Also, after the data is appended, I have to delete some records that are invalid (ie. Null values or void invoices with null times, etc) which is why I do not have consecutive numbers.
I've followed some of the ideas on here, but nothing seems to work for me including joining the table to itself.
Any new ideas?
Thanks!
Barb E.