roxannep
Technical User
- Jun 20, 2000
- 69
What I have:
Table: Inventory
Fields: EndDate, Location
Table: Location
Fields: LocationID, BoxIdentifier, StartDate, EndDate, WeekNo
Table: Package
Fields: PackageID, PackageType
The user is selecting the package type, and entering an end date. They need to know based on those parameters which holding box (identified by BoxIdentifier and WeekNo) to then put items in and the type of packaging when they go to retrieve it they are looking for. This needs to show on their form right after they enter the Package type which I have set up as a ComboBox where they make their selection.
What I need:
Update into the Inventory Table, Location Field a new piece of data combining the BoxIdentifier, WeekNo, PackageType using the EndDate of Inventory to select this data based on it falling between StartDate/Enddate of Location. I haven't even added the package type yet to confuse myself even further, so right now I just want to see the BoxIdentifier and WeekNo from Location table in the Location Field of the Inventory Table.
I tried an update Query, but it didn't add this information into the table.
UPDATE Inventory, Location SET Inventory.Location = [Location].[BoxIdentifier] & [Location].[WeekNo]
WHERE ((Inventory.Enddate Between Location.Startdate And Location.Enddate));
Maybe an Update Query isn't the place to start? Any help would be greatly appreciated! Thank you! [sig][/sig]
Table: Inventory
Fields: EndDate, Location
Table: Location
Fields: LocationID, BoxIdentifier, StartDate, EndDate, WeekNo
Table: Package
Fields: PackageID, PackageType
The user is selecting the package type, and entering an end date. They need to know based on those parameters which holding box (identified by BoxIdentifier and WeekNo) to then put items in and the type of packaging when they go to retrieve it they are looking for. This needs to show on their form right after they enter the Package type which I have set up as a ComboBox where they make their selection.
What I need:
Update into the Inventory Table, Location Field a new piece of data combining the BoxIdentifier, WeekNo, PackageType using the EndDate of Inventory to select this data based on it falling between StartDate/Enddate of Location. I haven't even added the package type yet to confuse myself even further, so right now I just want to see the BoxIdentifier and WeekNo from Location table in the Location Field of the Inventory Table.
I tried an update Query, but it didn't add this information into the table.
UPDATE Inventory, Location SET Inventory.Location = [Location].[BoxIdentifier] & [Location].[WeekNo]
WHERE ((Inventory.Enddate Between Location.Startdate And Location.Enddate));
Maybe an Update Query isn't the place to start? Any help would be greatly appreciated! Thank you! [sig][/sig]