
Update method and Requery method
You probably don't really have a dynamic cursor. If you have a client side
cursor, then no matter what you requested, you get a Static cursor. With a
static client side cursor, you must call requery to update your client side
recordset with the changes you made to the underlying data. Looks like you
just go a little experience.
--
regards,
ed
Experience is what you get when you
don't get what you wanted.
Quote:
> I have a recordset opened with adOpenDynamic and adLockOptimistic setting.
> I have a form scope recordset variable that will be used throughtout the
> entire form, then I tried to do the following:
> 1.) Create a new record with the recordset with default value, for
example,
> I assign the value "John" in the name field, then call the Update method
> 2.) Update the record with a new value
> 3.) Show the updated record somewhere
> Here come's the problem, if I just follow the above steps, I can't even
> update the record, I mean, the update method didn't return any errors ,
but
> it just didn't update the record with the new value, and of course, it
won't
> show the new value at step 3 as well
> However, if I call the Requery method right after the Update method in
step
> 1, problems gone. I am just wondering why would this happen, or did I
done
> something wrong.
> Any idea?
> Thans
> Tony