little3399 Active Member Licensed User Longtime User Oct 16, 2015 #1 Hi all Is there any way to confirm a recordset was empty ? It seem the recordset.nextrow can not support this ? Tks!
Hi all Is there any way to confirm a recordset was empty ? It seem the recordset.nextrow can not support this ? Tks!
S sorex Expert Licensed User Longtime User Oct 16, 2015 #2 what do you mean with empty? if it exists it won't be empty but contain default value or NULL values. Upvote 0
what do you mean with empty? if it exists it won't be empty but contain default value or NULL values.
little3399 Active Member Licensed User Longtime User Oct 16, 2015 #3 My means was if RecordSet.NextRow=false, this not sure the recordset was empty ... Upvote 0
S sorex Expert Licensed User Longtime User Oct 16, 2015 #4 oh you meant recordset I thought you meant the record. I guess you use do while recordset.nextrow so I guess it will skip the loop if it's empty. Upvote 0
oh you meant recordset I thought you meant the record. I guess you use do while recordset.nextrow so I guess it will skip the loop if it's empty.
little3399 Active Member Licensed User Longtime User Oct 16, 2015 #5 my logic flow was if the recordset empty and then insert some data into the table , if not , then not insert ... Upvote 0
my logic flow was if the recordset empty and then insert some data into the table , if not , then not insert ...
S sorex Expert Licensed User Longtime User Oct 16, 2015 #6 I just checked and the help that shows up when typing a resultset.NextRow mentions that it returns true if it has records. so your false check should work. Upvote 0
I just checked and the help that shows up when typing a resultset.NextRow mentions that it returns true if it has records. so your false check should work.