473,402 Members | 2,053 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,402 software developers and data experts.

"Sharing" two tables

I have two tables (Orders) and (Products).

Orders table has fields named: Order ID
Product Name
Catalog #
Price
Quantity
Total Price

Product table has fields named: Product ID
Product Name
Catalog #
Price

I have a form which includes fields from both tables - How do I select
one product and have the rest of the fields entered into the order
table, as well as calculate a total price based on the quantity
entered? Or is this not a function of a table?

Thanks!

Jun 27 '06 #1
1 1211
be********@hotmail.com wrote in
news:11**********************@p79g2000cwp.googlegr oups.com:
I have two tables (Orders) and (Products).

Orders table has fields named: Order ID
Product Name
Catalog #
Price
Quantity
Total Price

Product table has fields named: Product ID
Product Name
Catalog #
Price

I have a form which includes fields from both tables - How do
I select one product and have the rest of the fields entered
into the order table, as well as calculate a total price based
on the quantity entered? Or is this not a function of a table?

Thanks!

No it's not a function of a table. It is a function of the form.

Since you failed to mention much I'll make an educated guess
that the form is for Order Creation. You have some method of
entering the catalog number into the Orders form It could be a
combobox, a listbox or simply a textbox. Before anybody can
suggest how you copy over the price from the product table once
you have selected the Catalog number you'll have to tell the
group how you are entering the catalog number.

BTW the Neither Product Name nor the Total Price should not be
fields in your orders table, as the first can be looked up from
the product table and the second can be calculated, in any
query, form or report where they are needed.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 27 '06 #2

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

Similar topics

11
by: Codemonkey | last post by:
Hi, I am writing an App in .Net that involves some scheduling of tasks. I was wondering if anybody has come accross any components or examples of how to implement a schedule manager like the one...
6
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= ...
3
by: jamie | last post by:
Hi, I'm trying to delete a whole bunch of records and keep getting the message "File Sharing Lock Count Exceeded (Error 3052)". What is this error and how do I overcome it? Thanks guys.
0
nidahali
by: nidahali | last post by:
Hi, I'm making a project on load balancing / load sharing among a single server and multiple clients. What my requirements are: Server Client CPU Usage
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
8
by: eastcoastguyz | last post by:
I'm very new to RSS. I was given a URL that starts with "feed:". I want to be able to open this and read in its content into a PHP program to produce a report. I'm not interested in converting it...
30
by: kj | last post by:
My book (Flanagan's JavaScript: The Definitive Guide, 5th ed.) implies on page 111 that the following two constructs are equivalent: ( x.constructor == Foo ) and ( x instanceof Foo ) The...
11
by: Jan | last post by:
Hi: Here's a problem I've had for a long time. The client is really running out of patience, and I have no answers. Access2003, front- and back-end. Single form with 4 subforms (each...
2
by: chani | last post by:
I dont know where start my project in "files sharing" if someone can help me it's will be nice i'm so nervous from this... thanks a lot!!!!
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
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...
0
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,...

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.