Synchronizing comboboxes in subform...
Posted on 2003-11-19
OK, I haven't used Access since 1997 so I am a bit rusty, a good C programmer but just need to clear some cobwebs and it seems alot in Access that should be there isn't.
(I am converting a database from Lotus Approach with DBFs b/c IBM doesn't update the bugs and it is only partially relational and you have to do previews to see like SUMs and calculations)
I have searched and searched and found similar problems to mine but not exact:
I have a Purchase order program where the top part of the page which has the
PO number, Date, Entered by, Terms, etc. in the TABLE PURORDER and (the vendor info is in another TABLE that is linked).
This form is called: form_purorder2004
The SUBFORM (subform_puritems) contains the purchase order items from the TABLE: PURITEMS
Which contains fields, PO Number, PartNo(Combobox), UnitPrice(Combobox), Qty, calculated field: LINETOTAL (done in query),
Here is what I want to do i need to sychronize the two combo boxes....
When a PARTNO is selected I want the Unit price to show a list based on a query of the prior purchases and price. I made a query which has the PartNO, Unit Price, PODate, and Avg Price. I would like to show the 4 fields when the person clicks the down arrow on the Unit Price box.
1. Person selects PartNo from combobox list (they cannot add from here).
2. Next field with focus is the Unit Price, they click down arrow and should see the previous prices, date, po number and part number(for verification).
3. If the person needs to go back and enter price later (this happens ALOT), when they click into the Unit price combobox, it should be able to bring up the list.....
Now hold on .... HERE is the problem....
I actually got it to work - BUT if i ONLY look at the subform alone, but it doesn't work if I look at the form_purorder2004 with the subform embedded at the bottom in there.
I know that this is an issue, but I can't figure out how to implement anyone's solution...
I know you can't just change the RowSource b/c of the subform - i don't understand the reason -
Can a guru out there lend a hand???