473,763 Members | 8,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inventory Form

DS
Hi,
I'm building an Inventory form. I have a Product Form and ono that form
I want to place a sub-form showing the sold products along with the
Products that were received. I have a calculated field to show me what
my current inventory is. However, I want to only use one Sub-Form as
oppossed to two. When I try to set up a query using the Products table
in the center and Orders on one side and Sales on another Access can't
return results with the two tables. If i remove either the Orders or the
Sales the Query works. Are there any samples of a situation like this
out there? Thanks
DS
Nov 13 '05 #1
2 2286
gj
DS wrote:
Hi,
I'm building an Inventory form. I have a Product Form and ono that form
I want to place a sub-form showing the sold products along with the
Products that were received. I have a calculated field to show me what
my current inventory is. However, I want to only use one Sub-Form as
oppossed to two. When I try to set up a query using the Products table
in the center and Orders on one side and Sales on another Access can't
return results with the two tables. If i remove either the Orders or the
Sales the Query works. Are there any samples of a situation like this
out there? Thanks
DS


You need to use a Union query. Note you must have the same number of
fields in each query.
- The first query determines field names, etc so the first field I have
called ACTION can be referred to by the OrderBy clause. Additionall
sorting on the filed SOLD_DATE will sort for both the first and second
queries as the results for the RECEIVED query are appended to the bottom
of the first query.
- You can also add a WHERE clause with each query to maybe limit by date.
- The Orderby clause will sort the results from the two queries by Date
and then ction so for sales and received on the same day Received will
show first.

SELECT "SOLD" AS "ACTION,PRODUCT _ID, SOLD_DATE,SOLD_ QUANT FROM TBL_SOLD
WHERE SOLD_DATE > #1 MAY 2000#
UNION
SELECT "RECEIVED",PROD UCT_ID, RECEIVED_DATE,R ECEIVED_QUANT FROM TBL_SOLD
WHERE RECEIVED_DATE > #1 MAY 2000#
ORDER BY SOLD_DATE, ACTION
Gavin
Nov 13 '05 #2
Try a Union Query

"DS" <bo******@opton line.net> wrote in message
news:dp******** **************@ news4.srv.hcvln y.cv.net...
Hi,
I'm building an Inventory form. I have a Product Form and ono that form I
want to place a sub-form showing the sold products along with the Products
that were received. I have a calculated field to show me what my current
inventory is. However, I want to only use one Sub-Form as oppossed to
two. When I try to set up a query using the Products table in the center
and Orders on one side and Sales on another Access can't return results
with the two tables. If i remove either the Orders or the Sales the Query
works. Are there any samples of a situation like this out there? Thanks
DS

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1094
by: HK | last post by:
I have an inventory form designed in continuous format so that users can edit quantity on hand information. I have numerous filters set up because the inventory table holds sever hundred thousand records. Should I be using a form filter instead of the following code? I use the following function to change the forms record source. UpdateView is called anytime a user makes changes to the checkboxes, radio buttons, etc. Public Function...
13
3998
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate button "Unexpected Error":3251 operation is not supported for this type of object.The demo cd has two databases, one is called inventory and the other just has the tables for the design called inventory data. When you run inventory the database works...
1
1973
by: Doll | last post by:
I need some help please. I need to show data as disabled but visible on 1 of my forms that is linked up to another table. For example: I have 2 forms and 2 tables. Form A is linked to table A. Form B is linked to Table B. The cost field is from the componentcost table and linked to on Form b, but I want it also to show up on Form A but form A is linked to the inventory table. I only need it to show up on Form A for viewing purposes...
2
1501
by: danthrom | last post by:
I have this update query UPDATE LEFT JOIN ON .=. SET . = . WHERE .=.; Which updated the storage date for all linked data with the similar box number. Now I want to create a SQL that will run on a form command or afterupdate.
1
3122
by: starcandy | last post by:
haii........ ,first at all sorry because im not good in english i want to ask how to add quantity for inventory system .this is my form but it has error... <?php require_once('Connections/inventory.php'); ?> <?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
4
2853
Sandboxer
by: Sandboxer | last post by:
I want to be able to program Access to provide for me, by individual day, what my contract obligations are to my customers. Will Access recognize all the individual days in between a date range (simply a "from" date and a "to" date)? Additionally, I need to delivery a specific quantity of product when the customer's inventory is within about parameter levels. EXAMPLE: "During the Date Range January 1, 2010 through April 30, 2010 when...
1
1773
geolemon
by: geolemon | last post by:
I have a form/subform used for inventory management. It is a bound form. The error: I don't understand what this means. How the form is intended to work: When you select a part number in the main form, the subform displays potentially several instances of that part number in inventory, and is designed to allow the inventory manager to adjust the quantities for each instance of the part in inventory.
3
3792
by: monion | last post by:
Hello, I am trying to retrieve multiple rows from a database, place each row into a form and beside each row add an input field with a variable field name. So far I can only pull one row. If it helps to conceptualize, I am pulling an inventory db (vendor, item#, description, etc) I want to return each item line by line and beside each item provide a space to input the quantity the client would like to order... So far I have the...
6
11833
by: Amy Badgett | last post by:
I am currently trying to create an inventory database that includes a form that will update the inventory numbers last updated in the database. Rather than having one row constantly being updated in the table, I would like to keep track of what has come in and out of the warehouse and when. So far, I have the fields on my form and am able to update the next record by entering in numbers, but I'm not sure how to use what I enter into the...
0
9564
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.