473,387 Members | 1,492 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,387 software developers and data experts.

need help with append

I want to extract a subset of fields from one table into another
the master table has many fields
the subset has about half, but still many.

Is there a way I can just append the master into the subsets structure and
this way only the existing fields in the destination will be filled?
That would be great, but it seems that the append query wants you to specify
the fields.
is there another way around this?
I want to do it in code and it seems the sql string will be too long.

I remember you could do this in dbase I think.

Thanks in advance
Nov 12 '05 #1
2 1811
In the Append Query you can specify which fields from the source you want to
append. Long shouldn't be a problem. Create the query in the query design
grid then change to SQL view and copy and paste into your code. You can run
the query from code by assigning the SQL to a string variable then executing
it.

Example:

CurrentDb.Execute strSQL, dbFailOnError

--
Wayne Morgan
Microsoft Access MVP
"Danny" <da********@hotmail.com> wrote in message
news:9D**********************@news4.srv.hcvlny.cv. net...
I want to extract a subset of fields from one table into another
the master table has many fields
the subset has about half, but still many.

Is there a way I can just append the master into the subsets structure and
this way only the existing fields in the destination will be filled?
That would be great, but it seems that the append query wants you to specify the fields.
is there another way around this?
I want to do it in code and it seems the sql string will be too long.

I remember you could do this in dbase I think.

Thanks in advance

Nov 12 '05 #2
If you have a table that contains the fields you want to append data
to(subset table). You design a query using your master table as the data
source for the query. Add (Double-click or select and drag) "only" the
fields you want to update in your subset table, to the design grid. On the
main menu select the Query/Append Query option. You'll be prompted to
select the table you want to append the data to. Select your subset data
table. If the field names of both table's are the same the names will
probably be automatically placed in the Append To row in the design grid.
If not select the field you want to append to. Run the query. Hope I
understood what you are trying to accomplish.

--
Reggie

www.smittysinet.com
----------
"Danny" <da********@hotmail.com> wrote in message
news:9D**********************@news4.srv.hcvlny.cv. net...
I want to extract a subset of fields from one table into another
the master table has many fields
the subset has about half, but still many.

Is there a way I can just append the master into the subsets structure and
this way only the existing fields in the destination will be filled?
That would be great, but it seems that the append query wants you to specify the fields.
is there another way around this?
I want to do it in code and it seems the sql string will be too long.

I remember you could do this in dbase I think.

Thanks in advance

Nov 12 '05 #3

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

Similar topics

10
by: george young | last post by:
For each run of my app, I have a known set of (<100) wafer names. Names are sometimes simply integers, sometimes a short string, and sometimes a short string followed by an integer, e.g.: 5, 6,...
4
by: yaffa | last post by:
dear folks, i'm trying to append a semicolon to my addr string and am using the syntax below. for some reason the added on of the ; doesn't work. when i print it out later on it only shows the...
7
by: berkay | last post by:
i have a txt file; berkay#white jack#black smith#jane writes in it. and after i run the program it only prints smith jane and crashes what is wrong?
30
by: nephish | last post by:
Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working...
1
by: tHeRoBeRtMiTcHeLL | last post by:
Below is an earlier post to an Excel Group.. ....but I thought that there might be a way to do this in Access by importing data and then creating append and/or update query. I would most certainly...
0
by: Henrik_the_boss | last post by:
Hello all. I have a couple of aspx pages. When something fails in them, I would like them to be able to log to either a database, a logfile, or the application log. All code is in C# I run...
3
by: Eirik Eldorsen | last post by:
I'm tring to translate an VB.NET method into C#. Here is what I've done so far. Need help on the while loop public static void SetInitialFocus(Control ctrl) { StringBuilder s = new...
5
by: Chris | last post by:
Hi, What is wrong with this code? I can't figure this out. Its suppose to display ..a bunch ..of errors on my page. I am stuck for over 4 hrs now an this crap. Please assist. This is on...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
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
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
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.