Hi there,
I am currently creating an inventory database.
I have form called Products links to product table and subform of transaction table. The product form enables user to either add records into two columns of Sold and Subsidy in transaction table manually or click a button called Add records to Subsidy, this will append records into subsidy column. Clicking an Add records to subsidy basically runs the append SQL. Now this works fine However, this allows user to add records continuously regardless of how many time.
Now, what I want to do is that to limit of running SQL by clicking a button or if InventoryTransaction.PlantID equals to Enter PlantID then appears the message “Duplicate record found”:
For more detail, please refer to the attachment.
Any assistant would be appreciated.
Thank you in advance
Best regards,
I am currently creating an inventory database.
I have form called Products links to product table and subform of transaction table. The product form enables user to either add records into two columns of Sold and Subsidy in transaction table manually or click a button called Add records to Subsidy, this will append records into subsidy column. Clicking an Add records to subsidy basically runs the append SQL. Now this works fine However, this allows user to add records continuously regardless of how many time.
Now, what I want to do is that to limit of running SQL by clicking a button or if InventoryTransaction.PlantID equals to Enter PlantID then appears the message “Duplicate record found”:
For more detail, please refer to the attachment.
Any assistant would be appreciated.
Thank you in advance
Best regards,