Hi!
I created a subform, so that I will be able to asign not just one item to an employee at a time. (description and tables at the very bottom of
My main form is
and its subform
Problem No.1: When I try to asign more than one product in the subform, everything works.* But when exiting the main form and opening it again, there isn't only 1 purchase with 5 products, but rather 5 purchases! The tables are correct, though.
For instance,tblPurchaseProduct:
PurhaseProduct_ID Purchase_ID Product_ID Price Quantity Cancel
1 1 9999 80,00€ 1 Yes
2 1 9999 80,00€ 1 No
3 1 9999 80,00€ 1 No
4 1 9999 80,00€ 1 No
5 1 9999 80,00€ 1 No
(This is ok for me, since I'm able to cancel only 1 item)
Problem No.2: The Employee_ID in my main form is a combo and became I-don't-know-why** the first highlighted field in my form, although the TAB index is only fifth... It's essential that the first highlighted field is the one with TAB index = 1, that is Year.
I'm stuck again, please help... Thank you very much!
Mare
_________________________________________
*It's about the same product. Because I need to be able to cancel only one product, I can't simply enter e.g. 5 items in the Quantity field, but copy-paste the whole row in the subform for 4 times. Is there any procedure, that would copy-paste a row as many times as a user would enter?
** It's a FindAsYouType combo - is that the reason?
I created a subform, so that I will be able to asign not just one item to an employee at a time. (description and tables at the very bottom of
My main form is
Code:
frmPurchase (Purchase_ID, Date, Year, Bill_No, Employee_ID, Name, Telephone, Mail)
Code:
frmPurchase_subform (PurhaseProduct_ID, Product_ID, Name, Price, Quantity, Price*Quantity, Cancel)
Problem No.1: When I try to asign more than one product in the subform, everything works.* But when exiting the main form and opening it again, there isn't only 1 purchase with 5 products, but rather 5 purchases! The tables are correct, though.
For instance,tblPurchaseProduct:
PurhaseProduct_ID Purchase_ID Product_ID Price Quantity Cancel
1 1 9999 80,00€ 1 Yes
2 1 9999 80,00€ 1 No
3 1 9999 80,00€ 1 No
4 1 9999 80,00€ 1 No
5 1 9999 80,00€ 1 No
(This is ok for me, since I'm able to cancel only 1 item)
Problem No.2: The Employee_ID in my main form is a combo and became I-don't-know-why** the first highlighted field in my form, although the TAB index is only fifth... It's essential that the first highlighted field is the one with TAB index = 1, that is Year.
I'm stuck again, please help... Thank you very much!
Mare
_________________________________________
*It's about the same product. Because I need to be able to cancel only one product, I can't simply enter e.g. 5 items in the Quantity field, but copy-paste the whole row in the subform for 4 times. Is there any procedure, that would copy-paste a row as many times as a user would enter?
** It's a FindAsYouType combo - is that the reason?