I have a very simple table (columns are: stamp, name, text) and I need to pull the record that was most recently inserted to do a comparison with the name field.
Stamp, like it would suggest, is the date that each partiulcar row was added, but is simply text. In my haste to get this thing up and running, I opted not to try to figure out how to do a wacky conversion of the default time/date stamp from whatever format it ends up being (hh:mm:ss mm/dd/yy, I believe) to the special little format I wanted (hh.mm.ss.mm.dd.yy). As a result, I went with a text field, and I enter the date for each row that gets added.
I have no ID field, and I can't think of any other way to order them chronologically without some significant changes to the database and scripts, so I wonder if there's another way. I don't think I can use the order by function on any of these fields, as they're all text.
If I just do a "select *", will the be ordered in the recordset in the order that they were inserted? Would it possibly be as easy as selecting them all, and manually advancing the cursor past 'numrows-1' records? Or is there an easier way to advance the cursor directly to the last record?
If someone knows an easy way to have the date converted from a default date/time stamp format to my special little format (hh.mm.ss.mm.dd.yy), that'd be cool, and I may just decide to change that columns format and re-entering the few dates I have, but I just want to do what's easiest.
Stamp, like it would suggest, is the date that each partiulcar row was added, but is simply text. In my haste to get this thing up and running, I opted not to try to figure out how to do a wacky conversion of the default time/date stamp from whatever format it ends up being (hh:mm:ss mm/dd/yy, I believe) to the special little format I wanted (hh.mm.ss.mm.dd.yy). As a result, I went with a text field, and I enter the date for each row that gets added.
I have no ID field, and I can't think of any other way to order them chronologically without some significant changes to the database and scripts, so I wonder if there's another way. I don't think I can use the order by function on any of these fields, as they're all text.
If I just do a "select *", will the be ordered in the recordset in the order that they were inserted? Would it possibly be as easy as selecting them all, and manually advancing the cursor past 'numrows-1' records? Or is there an easier way to advance the cursor directly to the last record?
If someone knows an easy way to have the date converted from a default date/time stamp format to my special little format (hh.mm.ss.mm.dd.yy), that'd be cool, and I may just decide to change that columns format and re-entering the few dates I have, but I just want to do what's easiest.