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

copy cells from a column in ms-access by record number

I'm working in marketing research, where i search for keywords via google adwords application, the office has provided me with an MsAccess file that contains over 2 million records , as i'm amature in Ms Access i copy 2500 record each time "because that is the limit of the search engine" by highlighting the records and then press Ctrl+C and this is awfully time consuming.
Is there any way that i can copy the records by the record number ? for example to tell Ms Access to copy from record 1 to 2500 to the clipboard so i can paste directly to the keyword application i use ? i'd very much appreciate any opinion or a solution that might help. Thanks in advance
Dec 10 '11 #1

✓ answered by sierra7

Hi
Where to start? Writing Step-By-Step instructions is very time consuming and the intial steps depend on the version you are using.
I will presume you will start by trying option (A) because it is the most straightforward.

I suggest you start by Googling YouTube for 'Create Query in Access' for the version of Access that you are using. There are many video tutorials out there, which are much better than what I could write.

You need to create a query on your table so that it lists the field containing the AdWord. Save the query and give it a name. Anything, 'qryMyQ' would be OK.

When it is saved, reopen it in Design Mode and View as SQL, which will show it as a 'text command'. You will then have to insert the words 'TOP 2500' as shown in my first post and then re-save the query. When you next run qryMyQ it should only show 2500 records, not the full 2 million.

Make sure you are working on a copy of the database file; either a copy of the .mdb (or .accdb if 2007/2010) or a copy of the table within the database.

You should then be able to use cut and paste as describe in my first post

S7

7 2069
Mihail
759 512MB
Hello !
An idea can be to use a select query.
In the criteria row write: "Between(StartRow,EndRow).
After you run the query you can select all rows at once, then Copy-Paste.

I am almost sure that exist a easier solution.
I'll looking for it.

Good luck !
Dec 10 '11 #2
sierra7
446 Expert 256MB
Hi
Access does not let users see it's internal record numbering, so that can not be used. There are a number of alternative attacks to this problem.

A) You can set up an SQL query to "SELECT TOP 2500 fldName FROM tblSourceDataCopy;". You could then Ctrl+A to select All, then Ctrl+X to cut these then Paste to your other app. Re-running the query would then select the next 2500. Clearly you would have to work on a copy of your data if you wanted to preserve the original list.

B)You could add an auto-number column to your data which could then be used as a row-number. As Mihail suggested you could then use a 'Between' statement to select any range.

C) Alternatively, you could add a new column (call it say TagID)then loop through your 2 million record putting '1' in TagID for the first 2500 and '2' for the second 2500 etc. You could then create a Select statement that filtered for any TagID and would return 2500 records.

I think there is now a function (maybe a DoCmd method)(someone on this site will have code for this) that will copy to clip-board so a certain amount can be automated but seemingly you will still have to Paste manually into your next app. If I knew how you get your data into the Google AdWords app I might be able to suggest a more automated system, but for the moment Option (A) should save a lot of scrolling.

S7
Dec 10 '11 #3
I appreciate the time and effort for answering my question , i really can't begin to think how to say thank you ,the problem is i've never dealt with ms access or any kind of database before , some terms seem obscure to me , i wouldn't ask for it unless i needed becasue right now there are not as many jobs as used to be , could you please add a step by step solution ,if it's not very much to ask , if it is , then i thank you already and have a very nice day
Dec 10 '11 #4
sierra7
446 Expert 256MB
Hi
Where to start? Writing Step-By-Step instructions is very time consuming and the intial steps depend on the version you are using.
I will presume you will start by trying option (A) because it is the most straightforward.

I suggest you start by Googling YouTube for 'Create Query in Access' for the version of Access that you are using. There are many video tutorials out there, which are much better than what I could write.

You need to create a query on your table so that it lists the field containing the AdWord. Save the query and give it a name. Anything, 'qryMyQ' would be OK.

When it is saved, reopen it in Design Mode and View as SQL, which will show it as a 'text command'. You will then have to insert the words 'TOP 2500' as shown in my first post and then re-save the query. When you next run qryMyQ it should only show 2500 records, not the full 2 million.

Make sure you are working on a copy of the database file; either a copy of the .mdb (or .accdb if 2007/2010) or a copy of the table within the database.

You should then be able to use cut and paste as describe in my first post

S7
Dec 10 '11 #5
Thank you sierra7 for taking some of your time to explain this to me, this means alot and i appreciate it , stay safe bro
Dec 10 '11 #6
NeoPa
32,556 Expert Mod 16PB
Another approach to setting the TOP parameter to the SELECT clause in your query is to keep the query in design view but open the Properties pane (Use Alt-Enter or click on View | Properties). From here set the Top Values property to 2500 (or whatever).
Dec 11 '11 #7
sierra7
446 Expert 256MB
Another approach I am reminded of (having followed some discussion on DAO vs ADO) would have been to create a recordset and used .AbsolutePosition

But I can see no advantage in doing this and it was probably outside the skillset of the OP.
S7
Dec 13 '11 #8

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

Similar topics

3
by: Faith | last post by:
Hello. I need to take a column from Excel(unknown amount of rows) that will be selected by the user and copy those cells. Then I will need to paste those cells into the first column in a Data...
3
by: Melissa Kay Beeline | last post by:
This is driving me crazy!! I'm using MSACCESS, and all I want to do is create a macro/query/anything that will take the data in Column A and copy it into Column B (same table) "Insert into"...
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
0
by: fhelik | last post by:
I have "tableA" with column "a" and "tableB" with column "b". Column "a"has new material to, i need to run somthing like upgrade? please help. give examples i am a newbe this is mysql thank...
2
by: mraghavendra | last post by:
Dear All, I want to know to the steps required to created DTS packages in SQL Server, for tranfering data from MS Excel to MS SQL Server 2000. Please, can somebody give me the site link which...
3
by: imtmub | last post by:
Hi, I have two tables in that one table contain name id, name, categary etc., and other table contains name id, name but not categary. now i want to copy the categary column another table. One...
5
by: NamelessNumberheadMan | last post by:
I have a table I need to make changes to. Dropping columns isn't my problem, but before I drop one of the columns I need to copy the values that aren't null to another existing column in the same...
2
by: NamelessNumberheadMan | last post by:
I have a table I need to make changes to. Dropping columns isn't my problem, but before I drop one of the columns I need to copy the values that aren't null to another existing column in the same...
2
by: iano | last post by:
I thought I saw this done once before. So today I hunted around in Books OnLine and did a Google search. So far I have found nothing close. So if you know how to do it, please tell me or if cannot...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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...

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.