Fast method for Searching Memo Field

just1joe

Board Regular
Joined
Apr 15, 2003
Messages
79
Hello,

I'm new to Access2000 and am not sure how to approach a problem. I have a table called ImportBatch and one called GoodData and a final called SearchResults. What I need to be able to do is take the first record in ImportBatch and read the searchstring field. I would take that searchstring and search a memo field in GoodData. The matching GoodData records need to be written to the searchresults table with the search name and criteria from the ImportBatch table. After GoodData has been searched, then perform the search on the next record in the ImportTable until there are no more records in the ImportTable

What would be the best function to use for this type of search?

- Joe
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I think that you are going to have to use code for this.
You will need to set up a recordset for the ImportBatch table and loop through its records to get your search string. Nested within the loop you will need to create an recordset using openRecordset with your GooddData Table with a where clause in the SQL made up from the criteria for the current record of ImportBatch. This will limit the record set to the records you need, which you can then step through writing the details to your SearchResult table as you go.

Hope that makes sense

Peter
 
Upvote 0
Ok, I'll give this a try. I'm not sure the diffference between the recordset and openRecordset.

- Joe
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top