Stephen,
Probably the easiest way to move the records is to:
- Rename Table 2 to whatever meaningful name you want to use.
- Define a new query based on the newly named table. Drag the Taxable
field to the grid.
- Change to an Update query (Query, Update Query).
- In the Update To: row, enter True
- Press the Execute button (the ! button)
- Take a look at the table. Each record should have its checkbox checked.
- Begin a new query based on Table 3. Drag all fields to the grid.
- Change the query type to Append (Query/Append Query). Access will prompt
you for the table. Enter the newly-named table.
- In the Append To: row, enter the corresponding fields (Description, Qty,
Amount)
- Execute the query. It will add these rows to the new table, but leave
the Taxable field blank (False).
- Check that the new table has both sets of records. When sure, you may
delete Table3.
- Create a new select query based on the new table. Drag all fields to the
grid. In the Criteria: row, enter True in the Taxable column.
- Execute the query. It should select only those rows where Taxable is
true. If so, save under a meaningful name such as TaxableCharges, and exit.
- In the database window, highlight the new query, press Ctrl-C to copy it
to the clipboard, then Ctrl-V to paste it to the Query window. It will
create a duplicate query named TaxableCharges1. Rename it to something like
NonTaxableCharges. Edit the query, changing the True criteria to False.
Save and exit.
- Open your main form, click into the first subform, and click the small
square box at the top left of the subform window. Press F4 to show the form
properties. Click on the Data tab, and change the RecordSource property to
the query name TaxableCharges. Leaving the Properties window open, show the
field list (View, Field List). Drag the Taxable field to the subform. Click
on its label and press delete to remove it. Select the new checkbox control,
and change its Visible property on the Format tab to No. Change its
DefaultValue property on the Data tab to True.
- Save, then similarly change the 2nd subform, setting the RecordSource to
NonTaxableCharges, and the DefaultValue of the checkbox to False.
Hope that helps. If you have any other issues such as how to calculate tax
for the taxable items, let me know.
Sprinks
Im not that great with access but ill try and see what i can come up with.
Thanks for the help.
[quoted text clipped - 52 lines]