I created a form and subform to write to my Material Takeoff Table.
Fields are ISOID, MaterialID, POID, Quantity, etc. ISOID exists more than
once in the Material Takeoff table. but no more than 1 material ID per ISOID.
If I create a form based on the ISO table and sub form based on the table
MaterialTakeoff, the Material ID's group by ISO. However, to add a new ISO to
the Material Takeoff form, the main form is trying to write back to the ISO
table. (I understand that the Main Form control source is ISO table not the
Material Takeoff table for write purposes).
How can I group the Material ID's by ISO number and write to the Material
Takeoff Table? End result, I want the user to be able to click new, enter
ISO# once, and multiple Material ID's under that ISO.
Thank you,
Dan
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200801/1
|
|
0
|
|
|
|
Reply
|
dancox
|
1/4/2008 6:07:36 AM |
|
Hi Dan,
I just created 2 tables, 1 for ISO and 1 for Materials as you described.
I created an auto form using the ISO table and another auto form using the
Materials table.
I opened frmMaterials in design view and set its Default View property to
continuous forms (form's property sheet, format tab).
I closed frmMaterials and opened frmISO in design view.
I chose the subform tool from the toolbox and put a subform on frmISO using
the wizard.
I followed the prompts till finished.
When I opened frmISO and entered an ISO number, I could do multiple entries
in frmMaterials for that ISO number.
At the moment I don't know why yours is not working.
For a start - how do you have the relationships set up between all your
tables?
Would you like to post your tables with their name, primary key, foreign key
and how they are related.
Jeanette Cunningham
"dancox via AccessMonster.com" <u40267@uwe> wrote in message
news:7db124e365328@uwe...
>I created a form and subform to write to my Material Takeoff Table.
>
> Fields are ISOID, MaterialID, POID, Quantity, etc. ISOID exists more than
> once in the Material Takeoff table. but no more than 1 material ID per
> ISOID.
>
> If I create a form based on the ISO table and sub form based on the table
> MaterialTakeoff, the Material ID's group by ISO. However, to add a new ISO
> to
> the Material Takeoff form, the main form is trying to write back to the
> ISO
> table. (I understand that the Main Form control source is ISO table not
> the
> Material Takeoff table for write purposes).
>
> How can I group the Material ID's by ISO number and write to the Material
> Takeoff Table? End result, I want the user to be able to click new,
> enter
> ISO# once, and multiple Material ID's under that ISO.
>
>
> Thank you,
>
> Dan
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200801/1
>
|
|
0
|
|
|
|
Reply
|
Jeanette
|
1/4/2008 9:23:15 AM
|
|
I have 3 tables involved.
tblISONumbers tblMaterials tblMaterialTakeoff
PK IDISO PK IDMaterial PK IDTakeoff
IDMaterial
IDISO
MaterialID's from the Material table and ISOID's from the ISO Table are both
linked via 1 to many relationship and with referential integrity enforced to
a 3rd table called Material Takeoff. The record source is the Material
Takeoff table using values from ISO table and Material takeoff. (ISO is a
drawing and we have about 1,400 drawings).
When we estimate, we go ISO by ISO and each ISO has its own Bill of Materials.
So we may have 1 or more materials from the Material table on each ISO.
I appreciate the help.
Jeanette Cunningham wrote:
>Hi Dan,
>I just created 2 tables, 1 for ISO and 1 for Materials as you described.
>I created an auto form using the ISO table and another auto form using the
>Materials table.
>I opened frmMaterials in design view and set its Default View property to
>continuous forms (form's property sheet, format tab).
>I closed frmMaterials and opened frmISO in design view.
>I chose the subform tool from the toolbox and put a subform on frmISO using
>the wizard.
>I followed the prompts till finished.
>When I opened frmISO and entered an ISO number, I could do multiple entries
>in frmMaterials for that ISO number.
>
>At the moment I don't know why yours is not working.
>For a start - how do you have the relationships set up between all your
>tables?
>Would you like to post your tables with their name, primary key, foreign key
>and how they are related.
>
>Jeanette Cunningham
>
>>I created a form and subform to write to my Material Takeoff Table.
>>
>[quoted text clipped - 19 lines]
>>
>> Dan
--
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
dancox
|
1/4/2008 3:39:23 PM
|
|
Dan,
Keep the main form based on tblISO
Use auto form to create a form based on tblMaterialTakeoff
Call it frmMaterialTakeoff
frmMaterialTakeoff
--continuous view
--a textbox for quantity
--a combobox called cboMaterial
--cboMaterail has rowsource
SELECT tblMaterial.MaterialID, tblMaterial.MaterialText FROM tblMaterial
ORDER BY tblMaterial.MaterialText;
MaterialText is a description of the material type
Back on formISO
--change the subform's source object to frmMaterialTakeoff
--set Link master and child fields to IDISO
Open frmISO
You can now enter a new ISO
Choose the materialID and enter the quantity.
Jeanette Cunningham
"dancox via AccessMonster.com" <u40267@uwe> wrote in message
news:7db62316ec162@uwe...
>I have 3 tables involved.
> tblISONumbers tblMaterials tblMaterialTakeoff
> PK IDISO PK IDMaterial PK IDTakeoff
> IDMaterial
> IDISO
> MaterialID's from the Material table and ISOID's from the ISO Table are
> both
> linked via 1 to many relationship and with referential integrity enforced
> to
> a 3rd table called Material Takeoff. The record source is the Material
> Takeoff table using values from ISO table and Material takeoff. (ISO is a
> drawing and we have about 1,400 drawings).
>
> When we estimate, we go ISO by ISO and each ISO has its own Bill of
> Materials.
> So we may have 1 or more materials from the Material table on each ISO.
> I appreciate the help.
|
|
0
|
|
|
|
Reply
|
Jeanette
|
1/4/2008 9:16:37 PM
|
|
|
3 Replies
338 Views
(page loaded in 0.071 seconds)
Similiar Articles: Grouping Records in a Form - microsoft.public.access.forms ...I created a form and subform to write to my Material Takeoff Table. Fields are ISOID, MaterialID, POID, Quantity, etc. ISOID exists more than once i... Grouping Form Fields on Continuous Form - microsoft.public.access ...Grouping on a Continuous Form? (Ordering and Option Groups) >> >a) Group the records displayed on the continuous form by University, then ... Grouping Form Fields on ... Group by on form - microsoft.public.access.formsI have a form which is based upon a select query. I have some records which have a 'Episode ID' which can be the same for some rows and different for... Is there a way to do Sorting and Grouping on a continuous form ...In a report, is there any way a record ... using the Sorting and Grouping feature to group the similar ... color ... one way to do this is through Form.Refresh). opening forms to a blank record in Access 97 - microsoft.public ...I am trying to have Access 97 open up to a blank record to be filled in but still be able to search for old records using the search or find functio... How to show what record number you are on in form? - microsoft ...I have created an unbound form in Access 2007 and am listing the records which are in my table. I found out how to show how many records there are i... Multiple Grouping Headers on Form like Reports - microsoft.public ...How could I select Multiple options in options group in form ... I would ... both vertically and horizontally (like ... similar records together —you can use a Group header ... Access: select multiple records in a form, process list in VBA ...I would like to use the record selectors on a form to select multiple records and then process just those records in VBA. Is it possible in VBA to ... Estimate Form - microsoft.public.accessGrouping Records in a Form - microsoft.public.access.forms ... Estimate Form - microsoft.public.access Parts List/Bill of Materials - microsoft.public.access Grouping ... Order of Events on Form/Subform (?) - microsoft.public.access ...In the Help file for Access 2002, it states: "When you open a form containing a subform, the subform and its records are loaded before the main form.... How to Group Records in a Form - Microsoft Access / VBAHow to Group Records in a Form. Microsoft Access / VBA Forums on Bytes. Find the first or last entered record in a table or form - Access ...You can group records by one or more fields, such as the Category field, and ... The underlying table or form will show the records in the order they were entered. Microsoft Access 2003 free tutorial. Unit 8 AccessIn this way the count() function will calculate on every group of records ... All the rows that have a null value in the grouping column form a single group. Reading FormsThe Guided Reading Record form keeps track of: the flexible student guided reading groups, dates the group met, book levels and titles to be read, records whether ... Sort records - Access - Office.com - Microsoft Corporation ...... specifying a sort order by using the Sorting and Grouping dialog box, see the section Sort records in a report. Forms You can specify a sort order for a form in Design ... 7/23/2012 11:11:40 AM
|