473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Make Products/Orders Query Updateable.

I have a products table where the PK is ProductID. Also have the standard Orders
table and OrderDetails table. I created a query that joins the Orders table and
OrderDetails table. The query includes the OrderDate field from the Orders table
and the ProductID field from the OrderDetails table. I added a criteria to the
OrderDate field to limit the orders to the past year. Then I converted the query
to a totals query to get the total sold of each item during the past year.

How can I join the totals query to the product table in a new query to get an
updataeable query?

I want to show all products in the new query with the inventory, reorder point
and number sold during the past year and to be able to edit the inventory and/or
reorder point fields.

Thanks for all help!

Steve
Nov 12 '05 #1
4 3559
A totals query cannot be made into an updateable query. If you want an
updateable query, you'll need to use a select query instead.

--
Ken Snell
<MS ACCESS MVP>

"Steve" <ss****@bellsouth.net> wrote in message
news:cU*****************@newsread1.news.atl.earthl ink.net...
I have a products table where the PK is ProductID. Also have the standard Orders table and OrderDetails table. I created a query that joins the Orders table and OrderDetails table. The query includes the OrderDate field from the Orders table and the ProductID field from the OrderDetails table. I added a criteria to the OrderDate field to limit the orders to the past year. Then I converted the query to a totals query to get the total sold of each item during the past year.

How can I join the totals query to the product table in a new query to get an updataeable query?

I want to show all products in the new query with the inventory, reorder point and number sold during the past year and to be able to edit the inventory and/or reorder point fields.

Thanks for all help!

Steve

Nov 12 '05 #2
Ken,

Thank you for responding!

I don't need to edit the total sold field from totals query, just the inventory
and reorder point fields from the Products table. I would just like to display
the total sold field with the inventory and reorder point fields.

Steve
"Ken Snell" <kt***********@notcomcast.realnet> wrote in message
news:un**************@TK2MSFTNGP12.phx.gbl...
A totals query cannot be made into an updateable query. If you want an
updateable query, you'll need to use a select query instead.

--
Ken Snell
<MS ACCESS MVP>

"Steve" <ss****@bellsouth.net> wrote in message
news:cU*****************@newsread1.news.atl.earthl ink.net...
I have a products table where the PK is ProductID. Also have the standard

Orders
table and OrderDetails table. I created a query that joins the Orders

table and
OrderDetails table. The query includes the OrderDate field from the Orders

table
and the ProductID field from the OrderDetails table. I added a criteria to

the
OrderDate field to limit the orders to the past year. Then I converted the

query
to a totals query to get the total sold of each item during the past year.

How can I join the totals query to the product table in a new query to get

an
updataeable query?

I want to show all products in the new query with the inventory, reorder

point
and number sold during the past year and to be able to edit the inventory

and/or
reorder point fields.

Thanks for all help!

Steve


Nov 12 '05 #3
I want to show all products in the new query with the inventory,
reorder point
and number sold during the past year and to be able to edit the
inventory and/or
reorder point fields.

One way:
The reorder point would go into the Products table. Then you could do
a totals query on the Issued/Used items table. use an outer join and
then NZ to convert nulls to zeroes and then subtract... Oh heck wait
a minute. Allen Browne has this on his website. There's an inventory
control schema with the queries you need to make the thing work.
Check it out.
Nov 12 '05 #4
If you just want to display these other fields, then you can use the DMax,
DLookup, DSum or other domain function in the control source of those
textboxes instead of including them in the query as fields.

That should let you do what you want and you can then use a select query as
the form's recordsource.

--
Ken Snell
<MS ACCESS MVP>

"Steve" <ss****@bellsouth.net> wrote in message
news:y7****************@newsread2.news.atl.earthli nk.net...
Ken,

Thank you for responding!

I don't need to edit the total sold field from totals query, just the inventory and reorder point fields from the Products table. I would just like to display the total sold field with the inventory and reorder point fields.

Steve
"Ken Snell" <kt***********@notcomcast.realnet> wrote in message
news:un**************@TK2MSFTNGP12.phx.gbl...
A totals query cannot be made into an updateable query. If you want an
updateable query, you'll need to use a select query instead.

--
Ken Snell
<MS ACCESS MVP>

"Steve" <ss****@bellsouth.net> wrote in message
news:cU*****************@newsread1.news.atl.earthl ink.net...
I have a products table where the PK is ProductID. Also have the standard
Orders
table and OrderDetails table. I created a query that joins the Orders

table and
OrderDetails table. The query includes the OrderDate field from the
Orders table
and the ProductID field from the OrderDetails table. I added a
criteria to the
OrderDate field to limit the orders to the past year. Then I converted
the query
to a totals query to get the total sold of each item during the past
year.
How can I join the totals query to the product table in a new query to

get an
updataeable query?

I want to show all products in the new query with the inventory,
reorder point
and number sold during the past year and to be able to edit the
inventory and/or
reorder point fields.

Thanks for all help!

Steve



Nov 12 '05 #5

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

Similar topics

3
by: Lad | last post by:
Hi, I would like to make in my web application a similar navigation like Google uses, I mean at the bottom of each page there are numbers of returned pages after you search query. Has anyone...
7
by: JohnA | last post by:
Dear all, I'm trying to compose a query, but I don't know how to express the statement. I have 4 tables: Customers, Orders, Order Details and Products. Each customer has many orders and each...
6
by: Paul T. Rong | last post by:
Dear all, Here is my problem: There is a table "products" in my access database, since some of the products are out of date and stopped manufacture, I would like to delete those PRODUCTS from...
3
by: Ray | last post by:
I have below query in Access 97 but it is not updateable by entering or editing data in the query. Can someone advise how to modify it to be updateable one. SELECT .PCode, .Model, .Description,...
5
by: Jack | last post by:
TblProduct ProductID ProductName Selected (Y/N) TblOrder OrderID CustomerID TblOrderDetail
4
by: Jim in Arizona | last post by:
Continuing my lessons out of a book, I ran into a problem when trying for the first time to update a datastore (access database in this case). My Code: Private Sub Page_Load(ByVal sender As...
8
by: Jim in Arizona | last post by:
I've been using an example out of a book to be able to edit the rows in a database. I am getting the following error: ========================================================...
3
by: Newbie | last post by:
I have two different levels of people who want to see my production report. We get orders which each call for one of five products. One level wants to see a spreadsheet type report with six...
3
by: trogenone | last post by:
Hello all I am fairly new to databasing but learning fast. Using access as my platform i have created two tables one Accounts the other Products. What i want to achive is on the prompt...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.