G
Guest
Perhaps I'm going about this the wrong way but here's what I'm trying to do:
I have a form called OrderAcceptance. The user will designate the ordered
product(s) in the OADetails subform. The Products field is a combo box
displaying either "Parts Order" (which could be anything -- and a detail of
that is entered later in another form) or a specific Assembly number. The
list in the combo box for products (which is a union query so I can add the
"parts order" option) displays only those assemblies that are available for
shipment. When the order acceptance is printed, I have code which updates
the assembly status to show it has been reserved, therefore no longer
available. (now it won't appear in the drop list on the next order)
My problem is when viewing existing orders. Because the assembly is no
longer available, the field appears blank. The combo box is LimitToList=Yes.
The first (bound) column of the combo box is a number (0 for parts order or
2-5 digits for the assembly) but the second column is what displays, which is
the text "parts order" or the full assembly number (3-4 letters plus the 2-5
digits).
I've tried modifying my union query to include the selected assembly (if
there is one) but may be doing something wrong because it still won't appear
in the field.
I've thought of having another form pop-up to display the available
assemblies and then the user picks one which, then code inserts it in the
products field. OR I have an adding/editing setup so the combo box is only
there when I'm adding new records, otherwise it's a textbox. I just keep
thinking that what I'm trying to do must work and I'm just an inch away from
making it work.
Thanks in advance!
I have a form called OrderAcceptance. The user will designate the ordered
product(s) in the OADetails subform. The Products field is a combo box
displaying either "Parts Order" (which could be anything -- and a detail of
that is entered later in another form) or a specific Assembly number. The
list in the combo box for products (which is a union query so I can add the
"parts order" option) displays only those assemblies that are available for
shipment. When the order acceptance is printed, I have code which updates
the assembly status to show it has been reserved, therefore no longer
available. (now it won't appear in the drop list on the next order)
My problem is when viewing existing orders. Because the assembly is no
longer available, the field appears blank. The combo box is LimitToList=Yes.
The first (bound) column of the combo box is a number (0 for parts order or
2-5 digits for the assembly) but the second column is what displays, which is
the text "parts order" or the full assembly number (3-4 letters plus the 2-5
digits).
I've tried modifying my union query to include the selected assembly (if
there is one) but may be doing something wrong because it still won't appear
in the field.
I've thought of having another form pop-up to display the available
assemblies and then the user picks one which, then code inserts it in the
products field. OR I have an adding/editing setup so the combo box is only
there when I'm adding new records, otherwise it's a textbox. I just keep
thinking that what I'm trying to do must work and I'm just an inch away from
making it work.
Thanks in advance!