473,503 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking table/query SQL

I have a table called tbl_QuoteDetails
QuoteNo Prim Key
fkeyProductID foreign key
Paneltype
Length
Price

Another table called tbl_Product:
ProductID Primary Key
ProductName
Thickness
NumbInPack

This contains essentially set data ie
ProductName Thickness NumbInPack
ABC 12 3
ABC 15 7
DEF 11 5
I created a blank form and added the above mentioned tables in this form as
subforms.
When entering new data into these subforms, I merely click the FkeyProductID
(combo box) field which gives me a dropdown multicolumn list.
eg. ProductID ProductName Thickness NumbInPack
the combo is bound to column 1 - the productname

It then allocates automatically the particular row data (selected in the
multicolumn combo box) in their respective fields.
So then ProductName, Thickness and NumbInPack fields will be automatically
populated by the choice made in the combo box.
Question: I want to combine all fields from both tables as one subform where
I can select the fkeyProductID multicolumn combo box and when selecting the
row line in the dropdown box, it will populate the respective fields with
this choice.
I tried a query and it didn't work. I can't seem to even enter data when
having created that query incorporating the fields from both tables.
Nov 13 '05 #1
1 1408
Looks like your standard Invoice/InvoiceDetails setup, except you don't
seem to have an invoice table. So that would be your main table, and
then your subform would be based on InvoiceDetails

InvoiceDetails
InvoiceID
ProductID
Quantity
Cost
(and then in your query) Partial Cost = Quantity * Cost (or as complex
as you need). And then you're pretty much set. If you are having
trouble with it, take a look at Northwind and modify it to suit your
needs.

Nov 13 '05 #2

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

Similar topics

1
1990
by: Alex | last post by:
Hello, We have a database in MS SQL 2000 and I'm trying to link to it from MS Access XP. I've created a user with full access to one specific table in the MS SQL database, but Access won't...
0
1834
by: Gianfranco | last post by:
Hi I got a problem with 2 tables. I have a table, say A, with x records, coming from a make table query and a table, say B, with y records, coming from another make table query. I need to join...
5
1689
by: Arvin Portlock | last post by:
I can't come up with a query that works. Can anyone help? Conceptually the relationships are easy to describe. I have a table for books (Entries), a table for authors (Authors), and a linking...
2
1589
by: Olly | last post by:
Find an id number not present in a linking table I have a linking table (tblPayment) that monitors the subscriptions from members. However, I need a query that can compare the ID number fields...
11
4501
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
15
3037
by: Jerry Alexander | last post by:
The Northwind Order Entry Application database is great! ----------------------------------------- But one thing is lacking: Real-time Stock Qty calculation!...
1
1998
by: hmiller | last post by:
I'm sorry to populate the server with yet another question about linking multiple tables and queries, howerver I have not been able to find the right criteria. My problem. I am trying to...
2
800
by: davy d | last post by:
I'm having a problem with an acess form linkin with another form. My index in the main form is Autonumber (Rec#) the 2nd form is called Record# and it is set for text. The link criteria works...
1
1307
by: kavithadevan | last post by:
Hi, I am creating websites in my event search form i am have 2 options(which is in radio button)one is countryname and another one is state name with search field(Its in first table).If i run my...
3
1942
by: phil67b | last post by:
Hello everybody, I have a page rech.php where I'm doing a multi-criteria research Ex. choose your car model, choose your country. After validation of my form, on the same page, the lines will be...
0
7194
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,...
0
7267
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
7316
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...
1
6976
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...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
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...

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.