J
John S
Hi all,
I am using a form for pet owner information, and a datasheet subform for
information on each pet owned. Works fine in a bound form, subform
arrangement, but you can't use a true save button with this arrangement.
Want save button.
As one of the newsgroup experts said, the workaround for a save button is
to bind the datasheet to a temporary table. I tried to do this via the
on_load method of the main form. First, I delete whatever is in the
"temporary table" (i.e. a preestablished, but empty table), then call a
recordset from the pet table based on the ownerID, and load the temporary
table. I get the pet table noting "deleted#" for each field initially, but
if I go into and out of design more, the data is there.
The hang up seems to be with the initial delete. If I remove it, the data
appears fine, except (of course) the number of pets keep doubling. I have
tried deleting from the temporary table from the form calling the owner/pet
form/sub-form. Same problem. I have tried moving loading the temporary
table to other methods in both the form and subform. No Success. I am
weary about deleting on form onload (what happens to my temp table if there
is an abnormal exit?)[Doesn't appear to work anyway]
I have also been playing with requery, but perhaps am having some problem
with notation for a sub form.
Thoughts?
John S.
Aylmer, PQ Canada
I am using a form for pet owner information, and a datasheet subform for
information on each pet owned. Works fine in a bound form, subform
arrangement, but you can't use a true save button with this arrangement.
Want save button.
As one of the newsgroup experts said, the workaround for a save button is
to bind the datasheet to a temporary table. I tried to do this via the
on_load method of the main form. First, I delete whatever is in the
"temporary table" (i.e. a preestablished, but empty table), then call a
recordset from the pet table based on the ownerID, and load the temporary
table. I get the pet table noting "deleted#" for each field initially, but
if I go into and out of design more, the data is there.
The hang up seems to be with the initial delete. If I remove it, the data
appears fine, except (of course) the number of pets keep doubling. I have
tried deleting from the temporary table from the form calling the owner/pet
form/sub-form. Same problem. I have tried moving loading the temporary
table to other methods in both the form and subform. No Success. I am
weary about deleting on form onload (what happens to my temp table if there
is an abnormal exit?)[Doesn't appear to work anyway]
I have also been playing with requery, but perhaps am having some problem
with notation for a sub form.
Thoughts?
John S.
Aylmer, PQ Canada