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

taking information from 2 tables and inserting it into a third

1
Hi Guys hope you can help, just getting back into access after a long abscence and cant get my head around ADO

Here is my dbase structure

Table purchase_tbl
Id
Ponumber
Supplier
Date

Sub Table poitems_tbl (1 to Many to purchase_tbl)
Id
Lnktoponum
Item
Cost
Sellprice

Table stockitems
Ponumber
Supplier
Date
Item
Cost
Sellprice

I need to select each individual item from the 1st 2 tables and insert it into the 3rd table. I have done something like this before with an unbound form and filtered combo boxes, but cant find my old code.

The way is see it working would be Ponumber be selected from a combo, this would auto populate supplier and date. Selections from the sub table would be filtered to items only on that Ponumber. The user then selects the desired item and populates the other fields. This is then written to the stock items table by clicking a comman button.

Any help would be greatly appreciated.

Best regards

Paul
Oct 16 '06 #1
0 922

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Greg Ofiesh | last post by:
Anyone who can help, I have two tables T1 and T2. T1 has fields K1 and F2 and T2 has fields K2 and F1. F1 is the foreign key relating to K1 and F2 is the foreign key relating to K2. My...
0
by: evan | last post by:
I am converting a sp that joins 2 OPENQUERY statements to populate a target table into a DTS package. I have the following SQL statement (whichs execute without error) that I am required to make...
0
by: Sandy | last post by:
I have four related tables. I need to do an insert on three of them. I created a stored procedure that handles the insert on two of the tables correctly . . . then I get to a tough part. The...
48
by: phillip.s.powell | last post by:
MySQL 3.23.58 - 4.0.17 (yep, several database server instances, don't ask) I have database Spring with table Students I have database Summer with table Students I am tasked to produce a...
1
by: Teo | last post by:
Hey guys!! I created a database using the built in SQL Express that comes with Visual Basic Express. I created the tables and relationships for now and I want to start testing how the information...
4
by: Michel Esber | last post by:
Hello, DB2 V8 LUW FP 11. My applications eventually takes a very long time to process simple insert statements. Here´s the output of a event monitor: Text : INSERT INTO MyTable...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
6
by: Sumith76 | last post by:
I am preparing a database for a survey. For ease, I break the table into different ones like a BaseTable with HouseNo, OwnerName, Address, a HouseTable with HouseNo, OccupantNo, Ownership, MaleNo,...
3
by: simple simon | last post by:
How would I insert into multiple related tables using a table valued parameter? Is there any way to do this without using a WHILE loop? I know how to insert from a table valued parameter into one...
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?
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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...

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.