Inventory?

i'm working on modifying those queries now - the "available" and "unavailable" queries; since we moved those fields to another table. And then I create that subform based on the "available totes" and "available lids" queries, right?
 
Sort of correct. The subform will be based on T_Transaction_Containers. The drop downs themselves will be based on those queries.
 
ok. i'll work on this.
 
First, your tables are still not correct. You have no link between your transactions table and your transactioncontainers table. You need the transaction id in transactioncontainers.

After that, the Record Source for your subform should be T_Transaction_Containers, not a query. Finally, you have no drop downs on your subform at all.
 
I'll make those table & relationship changes.
How do I create a "drop down"? That's different than a "combo" field or "list" field right?
 
I see there that I did have a link between transactions and transactionscontainers; using id's. Perhaps I didn't do it correctly?
 
In T_Transactions you have Trans_Employee which holds the ID number of the employee. You need to do the same thing for TransactionContainers. It needs a field to hold the ID of the Transaction it belongs to. The field you currently have set up is a primary key autonumber, which is fine, it just makes each record in TransactionContainers unique. You need a field in TransactionsContainers that ties each record back to a specific Transaction.

For drop downs, in design view of your form, right on the input select 'Change To' in the dialog that pops up and then 'Combo Box'.
 
Looks great. I do see one issue--when I add a Tote/Container to a transaction and then drop to a new line to add another one, the ones I just added are still available in the drop down.

I'm not the best with forms, but I do know there is a way to make it so that the combo boxes refresh after each change. I don't know if it requires a requery or a refresh of the combo box and I'm not certain what event to attach that code to, but I know its possible.

You might post that question in the forms section.
 
To refresh the combo boxes - on the subform in the After Update property I selected Embedded Micro and selected Requery action; and entered both the lid and tote queries. I've attached the database in case it would be helpful to anyone else that's been following along.
 

Attachments

oops . . .not "After Update" but rather at "Current" (to requery)
 

Users who are viewing this thread

Back
Top Bottom