I am thinking to put a crack in my standard of "multiple items forms are read only".
I am developing a parts list import wizard. The wizard populates a FE temp table with the .csv file being imported to the database. Next it does a table scan checking for parts either already a part and not currently associated with the product, or perhaps both records exist and it might be only a "qty per" change.
For the remaining parts, these are totally brand new to the database.
I am envisioning building a multiple items form to allow the importer to QA the data before new DB records are created for the remaining items. The way I build multiple items forms, they are based on a QueryDef object.
The Parts Import Wizard automatically checks a Yes/No field in the FE temp table indicating to import the part. For the parts not found at all in the database, on the form which QA's the new record creation, I want the person to be able to uncheck records which would change that Yes/No field to No, and the Parts Import Wizard would know to skip that / those records. (Perhaps the .csv file had a column heading row which is not a part record.)
What would be a way to leave the form based on a query, to be able to on the form edit the Yes/No field of the record, for the FE temp table to be updated immediately, and for the form to then ReQuery to display the current state of the FE temp table? I am thinking to grab the row id, run an UPDATE query toggling the Yes/No value of that record... I just can not think of how to have the form both based on a query AND to have one column's controls yet editable. All other columns will be read-only.
Suggestions?
I am developing a parts list import wizard. The wizard populates a FE temp table with the .csv file being imported to the database. Next it does a table scan checking for parts either already a part and not currently associated with the product, or perhaps both records exist and it might be only a "qty per" change.
For the remaining parts, these are totally brand new to the database.
I am envisioning building a multiple items form to allow the importer to QA the data before new DB records are created for the remaining items. The way I build multiple items forms, they are based on a QueryDef object.
The Parts Import Wizard automatically checks a Yes/No field in the FE temp table indicating to import the part. For the parts not found at all in the database, on the form which QA's the new record creation, I want the person to be able to uncheck records which would change that Yes/No field to No, and the Parts Import Wizard would know to skip that / those records. (Perhaps the .csv file had a column heading row which is not a part record.)
What would be a way to leave the form based on a query, to be able to on the form edit the Yes/No field of the record, for the FE temp table to be updated immediately, and for the form to then ReQuery to display the current state of the FE temp table? I am thinking to grab the row id, run an UPDATE query toggling the Yes/No value of that record... I just can not think of how to have the form both based on a query AND to have one column's controls yet editable. All other columns will be read-only.
Suggestions?