
Signature
More info, please ...
Jeff Boyce
<Access MVP>
> I have a pull down box that allows me to get a record from a query . One
> of the fields is quantity. Quantity can range from 1 - 25.
[quoted text clipped - 10 lines]
> Thanks in advance,
> Steve
Hi Jeff,
Sorry for not being clearer, and I might be making it more difficult than it
should be.
Background: For simplicity, let's assume I have two tables:
Orders and serial numbers.
The pull down box grabs a record from the order table. which includes the
quantity sold (example 20 PCs), and an order line ID (unique)
The serial number table includes the serial number (unique) as well as the
order table line ID . This is my join.
The serial number table includes all serial numbers of the products built or
sold. When a product is sold, I update the serial number table with the
order table line ID.
My problem is that at the time of order entry, I do not know what PCs with
serial number will be shipped. It is only after I pick them out of inventory
(my inventory does not have a serial control) and the warehouse manually
writes down the serial numbers of the product shipped for this line item, do
I know which serial numbers where shipped.
So, since I know how many PCs were shipped (in this example 20 pcs), and I
have a piece of paper which tells me which serial numbers were shipped, I now
want to update the 20 serial numbers in the serial number table with the
order line ID reference.
What I wanted to do , is open the serial number table with a pull down menu
(serial number from -to : this I can do) and have an option box next to the
, let's say 100 serial numbers from this query. I would then click on the
option box which would update the serial number table with the order line ID
. A counter would show me how many sold PCs would still need to be updated
in the serial table.
Hope this is clearer and would like to thank you up front for your
assistance.
Best regards,
Steve
I have an orders table with order line items.
> Steve
>
[quoted text clipped - 27 lines]
> > Thanks in advance,
> > Steve
Jeff Boyce - 29 Mar 2005 14:02 GMT
Steve
One approach to handling this would be to use a form. Add a combo box that
lets you select the OrderNumber. Add a combo box that lists all types of
items (this will require that your inventory items have a "type", otherwise,
you'll have to look through all your monitors and keyboards before you get
to your PCs)
Add one listbox that lists all the items of that type that have no
OrderNumber. Add a second listbox that lists all the items of that type
that HAVE the OrderNumber selected above (to start with, none!).
The generic approach to "wiring" these together is to add command buttons
you use to "push" an item from the "no Order" listbox to the "THIS Order"
listbox (and back again, in case you make a mistake). One way to do this is
to create an Update query that uses the OrderNumber (from the combo box) and
the InventoryItemNumber (from the "no order" listbox) and updates THAT
InventoryItem to THAT OrderNumber. After the update query, use something
like:
Me!lstYourORDEREDItem.Requery
and
Me!lstUnORDEREDItem.Requery
to refresh the two listboxes.

Signature
Good luck
Jeff Boyce
<Access MVP>
> Hi Jeff,
> Sorry for not being clearer, and I might be making it more difficult than it
[quoted text clipped - 70 lines]
> > > Thanks in advance,
> > > Steve