473,399 Members | 3,656 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,399 software developers and data experts.

Conditionally Append Rows...is it Possible?

Hey guys!

I have a problem. I am currently working on a project where I am required to look through a couple Databases (originally from Foxpro). One is a full contract list (roughly 2100 rows), the other is one huge database of all the members and the contracts they are committed to only (almost reaching 500,000 rows).

My question is this, Is there a way to run an Append query that can check the member contracts and what they are committed to, and then compare it against the full contract list. If the Contract from the full list is not in the member contract committment list, then add it to that database.

I hope this is possible, I've been racking my brains thinking of the logic involved. Seems simple, but committing it in the language is harder. Will I have to use VBA script with SQL?

Any help is appreciated, thanks alot!
Jun 13 '07 #1
1 1294
MMcCarthy
14,534 Expert Mod 8TB
Hey guys!

I have a problem. I am currently working on a project where I am required to look through a couple Databases (originally from Foxpro). One is a full contract list (roughly 2100 rows), the other is one huge database of all the members and the contracts they are committed to only (almost reaching 500,000 rows).

My question is this, Is there a way to run an Append query that can check the member contracts and what they are committed to, and then compare it against the full contract list. If the Contract from the full list is not in the member contract committment list, then add it to that database.

I hope this is possible, I've been racking my brains thinking of the logic involved. Seems simple, but committing it in the language is harder. Will I have to use VBA script with SQL?

Any help is appreciated, thanks alot!
To help with this we will need the metadata of the tables involved.

Here is an example of how to post table MetaData :
Table Name=tblStudent
Expand|Select|Wrap|Line Numbers
  1. Field; Type; IndexInfo
  2. StudentID; AutoNumber; PK
  3. Family; String; FK
  4. Name; String
  5. University; String; FK
  6. Mark; Numeric
  7. LastAttendance; Date/Time
Jun 15 '07 #2

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

Similar topics

1
by: Thomas Matthews | last post by:
Hi, My goal is to extract a text field into a string type. The text field is from a buffer (array) of characters and delimited by white space or double quotes. *** I'm looking to perform this...
1
by: jjouett | last post by:
I have XML that looks like the following: <top> <heart> <user>bob</user> <user>tim-o</user> <user>joe-i</user> <user>harvey</user> </heart> </top>
6
by: allyn44 | last post by:
Hi---I have to import some data from excel into an Access table--the code below is working ok but I would like to condense it by running a loop. The number of records can vary from 1 to 30 in each...
10
by: SueB | last post by:
I currently have a 'mail-merge' process in my Access db project. It generates custom filled out Award Certificates based on an SQL SELECT statement in a VBA routine invoked by clicking on a...
1
by: gspk | last post by:
Hi, I have a input file in the following format , 1-4 5-8 9-10 11 12-14 ------------------------------------ 1000 +500 25 1 250 2000 -520 55 1 25 2500 *525 55 1 125
10
by: eric dexter | last post by:
I seem to be creating an extra line on my grid that doesn't exist and doesn't save back to the file. The error I get is self.rows = self.GetCellValue(row -1, col) IndexError: list index...
4
by: bubulle | last post by:
Hi, all. Here is my problem: Let's say i have table1 with columns a,b,c and table2 with cols x,y,z. Some of columns contain the same type of data from one table to the other, but others are...
1
by: WWUser | last post by:
I have an Excel workbook where data of a particular type is separated by "header" rows using colons to specify the data type: :DataType1 FirstDataPoint SecondDataPoint ThirdDataPoint...
8
jinalpatel
by: jinalpatel | last post by:
I have two tables. tblClass and tblWithdrawn. On my main form(bound to tblClass) I have several data entry fields like Date withdrawn, Status (active or withdrawn) Date Classified etc. Also...
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
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...
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
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
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
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...

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.