dkmoreland
Registered User.
- Local time
- Today, 13:55
- Joined
- Dec 6, 2017
- Messages
- 129
I am trying to update one table depending on the value entered on a form and could use some insight from those that know more than I do.
Here's the scenario:
Input table:
ID - auto number
Accept/Recheck field - Quality control evaluation status
There are other fields in this table but I just need to concentrate on those
Non Conformance Table:
ID - number field - not auto number
NCR # - number field
When the user enters a status of "recheck" on the form for the Input table, I am querying the Non Conformance table to find out the last NCR # used. Once I know that, I need to increment that NCR # by 1, then add a new record to the Non Conformance table. The record should contain the new NCR # and the ID number from the Input table.
The remaining fields in the Non Conformance table will be populated when the user fills out a different form.
I am assuming the code for this would go in the After Update property for the Accept/Recheck text box. But I am unsure of the code to increment the NCR # and the insert statement.
Any help would be greatly appreciated.
Thanks,
Diana
Here's the scenario:
Input table:
ID - auto number
Accept/Recheck field - Quality control evaluation status
There are other fields in this table but I just need to concentrate on those
Non Conformance Table:
ID - number field - not auto number
NCR # - number field
When the user enters a status of "recheck" on the form for the Input table, I am querying the Non Conformance table to find out the last NCR # used. Once I know that, I need to increment that NCR # by 1, then add a new record to the Non Conformance table. The record should contain the new NCR # and the ID number from the Input table.
The remaining fields in the Non Conformance table will be populated when the user fills out a different form.
I am assuming the code for this would go in the After Update property for the Accept/Recheck text box. But I am unsure of the code to increment the NCR # and the insert statement.
Any help would be greatly appreciated.
Thanks,
Diana