Subject Re: beginappend() Problem Fixed
From Lee Grant <camilee@nospam.comcast.net>
Date Sat, 1 Jul 2023 01:37:40 -0400
Newsgroups dbase.getting-started

Ken,

Thanks. Yes, that's what I thought I was doing, but I was wrong. In my
follow up message apparently about the same time you wrote this, I did a
found that the way I created the form has different ways of getting the
database reference into a form, that I wasn't really aware of. Since I
made these forms some time ago, I had assumed the "form.rowset" would
work, but that reference isn't assigned the way I created the form with
a database and query object, as it's not assigned to the form.rowset
property.

I looked at the databuttons.cc and it seemed to be really more than I
wanted to do, and of course, I thought when creating my custom buttons
patterned after yours from the book, that it was going to be a simple
code statement in the button as you show.  Had I created the form by
dropping the table on it, I would have indeed had that form property
assigned by that action, but I didn't. I dropped a database and query
object on the form and then filled them in with the pertinent
information and never realized that the rowset is never assigned to the
"form.rowset" property.  :)  DOH!!

Lee

On 7/1/2023 1:15 AM, Ken Mayer wrote:
<snip>
>
> The nice thing is that with custom code, you can set it to use
> form.rowset, and then you can assign the rowset referenced as needed. I
> have forms with multiple rowsets, and when I switch (usually on a
> notebook component) to a different rowset, I can change the rowset
> referenced by form.rowset, and not have to alter any of the code used by
> the pushbuttons. Of course, the code for those buttons is quite generic,
> it's navigation/edit/append/save/etc. But by having them set to use
> form.rowset, you can save yourself a lot of hassle.
>
> Ken
>