B
Bill Morgan
I am trying to educate myself in ADO by writing code
behind an unbound form containing unbound text boxes. I
want my form to mimic the action of a bound form and bound
text boxes (the bound form containing standard, system
generated navigation buttons).
I have set up buttons on my unbound form for MoveNext,
MovePrevious.
Question1: With ADO code alone, how do I mimic the action
of the MoveNext and MovePrevious buttons - i.e., the
appearence of moving back and forth through the recordset,
one record at a time? Since the rs = Nothing at the end of
one MoveNext sub procedure, how do I keep track of my
current position so that the next time I press the
MoveNext button it moves to the very next record in the
recordset? Is the standard method to use AbsolutePosition
or Bookmarks with public variables?
Question2: In real world practice, is there ever a need to
do what I am trying to do here? In other words, if for
some reason Access cannot link itself to an external data
source, would the standard procedure be to loop through
the recordset with ADO and populate an Access table with
the data - then use bound forms and text boxes to view the
data?
Thanks for your assistance.
Bill Morgan
behind an unbound form containing unbound text boxes. I
want my form to mimic the action of a bound form and bound
text boxes (the bound form containing standard, system
generated navigation buttons).
I have set up buttons on my unbound form for MoveNext,
MovePrevious.
Question1: With ADO code alone, how do I mimic the action
of the MoveNext and MovePrevious buttons - i.e., the
appearence of moving back and forth through the recordset,
one record at a time? Since the rs = Nothing at the end of
one MoveNext sub procedure, how do I keep track of my
current position so that the next time I press the
MoveNext button it moves to the very next record in the
recordset? Is the standard method to use AbsolutePosition
or Bookmarks with public variables?
Question2: In real world practice, is there ever a need to
do what I am trying to do here? In other words, if for
some reason Access cannot link itself to an external data
source, would the standard procedure be to loop through
the recordset with ADO and populate an Access table with
the data - then use bound forms and text boxes to view the
data?
Thanks for your assistance.
Bill Morgan