Sep 27 2024 02:26 PM
Hi all,
I've attached a DB/Form im compiling to do a simple intake form for stock holding, Consignment Number needs to be unique, when inputting the TM_Carton_ID on the subform i want it to look up against the DB and bring back if its Pure or mixed, but i cant seem to get it to happen for multiple lines.
See my attached DB, any help on this would be useful, feel free to add any additions too, once this is live the TM_Carton_ID will be scanned in via a device and we need to tell the user if that carton is a pure carton or a mixed carton.
any help would be great on this thanks.
DB is below.
https://drive.google.com/file/d/1UgD7rwVlKIe_0EHKlDQ2TWqhkbwyLzBx/view?usp=sharing
Sep 27 2024 02:54 PM - edited Sep 27 2024 03:00 PM
Can you provide a definition of "pure carton" and "mixed carton"?
Are all of the tables in this downloadable accdb, or is it a subset?
Sep 27 2024 02:56 PM
Sep 27 2024 03:37 PM
Sep 27 2024 03:39 PM
Sep 27 2024 04:06 PM
Got it.
In that case, this query will list all of the "Pure" and "Mixed" cartons.
SELECT tbl_Pack_List.TM_ID, Count(tbl_Pack_List.SKU) AS CountofSkusInPack, IIf(Count([SKU])>1,"Mixed","Pure") AS PackType
FROM tbl_Pack_List
GROUP BY tbl_Pack_List.TM_ID
ORDER BY Count(tbl_Pack_List.SKU) DESC;
The table named "tbl_Carton_Type" is not needed at all.
Sep 30 2024 01:50 AM
@George_Hepworth :
Hi mate, like i say on the form itself, once entering the TM ID i need it too look up against the table and let me know if its a PURE or Mixed Carton... and i need to get it to display on the screen , via a text box to just prompt the user what type of carton it is.
Sep 30 2024 02:31 AM
open the main form and see if this is what you need.
Sep 30 2024 02:37 AM
Sep 30 2024 06:31 AM
@jamesmiller460 , you open out tbl_vehicles form. i am not sure what the form is about (for checking of packing list received?)