User Profile

Collapse

Profile Sidebar

Collapse
gotmitch87
gotmitch87
Last Activity: Sep 30 '11, 07:25 PM
Joined: Sep 27 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thank you guys so much for the responses. It turns out I found a solution (albeit a bit convoluted) just before I received Rabbit's response.

    I created an additional field in TextTbl called 'KeywordID' to store the priority of the keyword. Then I initialized that field to max(Keyword.ID) +1. The following query ensures that the TextTbl.Keyword field is populated with the keyword of highest priority (lowest KeywordID).

    Code:
    UPDATE
    ...
    See more | Go to post

    Leave a comment:


  • Good point. I'll be sure to implement that.

    I'm still working to figure out the other problem of populating [TextTbl].[Keyword] with the keyword of highest priority. I'm beginning to think I may have to use VBA, but am unfamiliar with how to use it, so it's a bit overwhelming at the moment!
    See more | Go to post

    Leave a comment:


  • Search text fields for keywords given a priority list

    I have a table (TextTbl) containing several text fields, and a table containing a list of keywords (KeywordTbl), ordered by 'priority'. I would like to populate a TextTbl.Keyword field within each record to contain the highest-priority keyword found within its text fields.

    I have written the following query:

    Code:
    UPDATE KeywordTbl, TextTbl 
    SET TextTbl.Keyword = [KeywordTbl].[Keyword]
    WHERE (TextTbl.TextField1
    ...
    See more | Go to post
No activity results to display
Show More
Working...