Hello all - I'm going to start out with an apology for my general db and access ignorance. I've been kind of an excel enthusiast for the past year or so, but am now working with larger data sets that I've read are better handled by Access... so, figured I'd give it a shot.
If anybody here would be kind enough to give me a little bump to get me started, I'd appreciate it.
I have a database set up with two tables. Table 1 contains 4 columns of data and 900,000 records:
Table 1
A) Ticker symbol
B) Ticker official name
C) Ticker description
D) <<Blank>>
Table 2 is going to be about 500 records in two columns
A) Keyword
B) Keyword Category
What I need to do seems to be fairly simple, but I don't know where to start. My objective is to do the following
For each keyword in Table 2 (Column A: Keyword), search through Table 1 (Column B: Ticker Name). For every instance where the keyword is found, add the value from Table 2 (Column B: Keyword Category) to the record.
To illustrate, if my Keyword is "Exchange Rate" and the Keyword Category is "Fixed Income", then I want to sweep through the NAME column in table 1 and add "FIXED INCOME" to anything that has "Exchange Rate" anywhere in it's name.
Hope that makes sense... any guidance would be fantastic! And go easy on me, this is my first database!
Thanks...
JP
Last edited by JP Romano; 01-11-2011 at 12:31 PM. Reason: removing
Would you clarify for me table 2? You have two fields with about 500 records. Are the 500 records unique? Are there are 500 different keywords? How many different keyword categories?
I am trying to determine if this can be achieved through an update query or if you need to loop through your recordset with some VBA to update your table.
Are you able to post your database without any proprietary data? Perhaps a scaled down version as there is a size limitation on posting.
Alan
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
Thanks so much for the reply...
I'll set up a mockup with a subset of dummy data... but to answer your questions, the keywords will all be unique, yes, and there will be a limited number of categories (I believe when all is said and done, there will be 8). I'll create something without proprietary data and upload it...
Okay, here's the attachment...it's a small subset of data, but should be sufficient. Let me know if you have any questions or if I can clarify anything.
Thanks!
JP;
There is no attachment posted.
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
looks like I pulled the trigger too soon... this time it should be there (I hope)
I have no idea why the attachment isn't coming through...
What format is the file.... we can't download .mdb files...
Try zipping the file.. we accept .zip
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
I think you have to zip it first for access files.
If you continue to have a problem, click on the report icon in the upper right hand corner and advise the MODS.
Alan
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
Won't upload... it's a zip file, below the 9.77 mb limit, but I just can't get it to work. Thanks for your time anyway...
Send a PM to our admin, RoyUk... to see why you can't include attachments.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks