Hello Everyone!!!
(Sorry about my grammar not an English Speaker/Writer)
Before anything thanks for your future help
I'm barely new to access (2010) and databases. I been using it for 1 month once in a while. Right now I have a small project about an inventory database where I need to set values to a sub-form field base on a combo box selection. A friend told me to use an Update Query to set this values but I have been not able to make it, let me explain, this is the picture so far:
Main Form
tblPurchaseApproval.PA_ID (key field / Auto Increase) - TextBox
tblPurchaseApproval.PR_ID - ComboBox ------This ComboBox has a Query with all the submited forms from other form------
Sub-Form
tblItemsPurchase.ID (Key field / Auto Increase)
tblItemsPurchase.PR_ID
tblItemsPurchase.PA_ID
I'm using Master field (tblPurchaseApproval.PR_ID) an child field (tblItemsPurchase.PR_ID) to get all the fields with the same value for each tblItemsPurchase.ID in to the sub-form. Now this is the part that I'm not able to do.
I want to set tblPurchaseApproval.PA_ID value to all the tblItemsPurchase.PA_ID that I got from "Master/child Fields" before, when form is saved (Click OK button)------I assume this is when we will use update query------
Thanks!!!