Problem with adding new rec with form containing a subform 
Author Message
 Problem with adding new rec with form containing a subform

I have a table with the following fields:

 ISN (autonum - primary key), ACCTNO, DATA1, & DATA2.

ACCTNO - can be repeated with different DATA1 & DATA2.

I have created a  FORM that has only ACCTNO displayed  at the top.  Below
the ACCTNO,
in the same FORM I have added a SUBFORM that contains DATA1 & DATE2.  The
SUBFORM
is a continuous repeating form that display DATA1 & DATE2 for each ACCTNO.

Now because I wanted to be able to scan through each acctno grouped
together, I made a query
to find all of the UNIQUE acctnos.  Once I did this, the button ">*" that
prompts new acctno record
updates was no longer clickable.  Within each acctno subform, new records
can be
added that way but no new acctno records.  Do you know how I can add a new
acctno record ?

Thanks,
Brent Dixon



Sat, 29 Dec 2001 03:00:00 GMT  
 Problem with adding new rec with form containing a subform
I guess the easy way to do it is to redesign your table. Based on your
information, you should split one table into two: Table 1: ISN, ACCTNO.
Table 2: ACCTNO, DATA1, DATA2. Then, you can bound your main form to
Table 1 and your sub form to table 2. Since there is one to many
relationship between table 1 and table 2, You can do the add/edit
process as you described.
Hope it will help.
Quote:
> -----Original Message-----

> Posted At: Tuesday, July 13, 1999 12:16 PM
> Posted To: forms
> Conversation: Problem with adding new rec with form
> containing a subform
> Subject: Problem with adding new rec with form containing a subform

> I have a table with the following fields:

>  ISN (autonum - primary key), ACCTNO, DATA1, & DATA2.

> ACCTNO - can be repeated with different DATA1 & DATA2.

> I have created a  FORM that has only ACCTNO displayed  at the
> top.  Below
> the ACCTNO,
> in the same FORM I have added a SUBFORM that contains DATA1 &
> DATE2.  The
> SUBFORM
> is a continuous repeating form that display DATA1 & DATE2 for
> each ACCTNO.

> Now because I wanted to be able to scan through each acctno grouped
> together, I made a query
> to find all of the UNIQUE acctnos.  Once I did this, the
> button ">*" that
> prompts new acctno record
> updates was no longer clickable.  Within each acctno subform,
> new records
> can be
> added that way but no new acctno records.  Do you know how I
> can add a new
> acctno record ?

> Thanks,
> Brent Dixon



Sat, 29 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Move to newrecord adds rec to db, but cant move to new rec

2. New record added to listbox, but won't load rec in form when selec

3. Form Coding Problem for New Rec

4. Problems Adding Records from a Form containing a Sub-form

5. New Rec with previous Rec data

6. Perform a go to new rec w/ retaining some info from prev rec

7. New Rec with previous Rec data

8. New Rec with Data Based on Previous Rec's Data

9. A97: Go to new rec in 2nd level subform

10. Subform retains data when going to new rec via coded rtn


 
Powered by phpBB® Forum Software © phpBB Group