Jump to content

Keywords and auto fill


This topic is 7115 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a list of keywords. They are in a field with check boxes. An average record could have anywhere from 2-4 check boxes checked. What I'm trying to do is; if a certain keyword is selected(checked) I want to increase the value of a numeric field.

This(below) doesn't seem to work.

Case (Keywords = "Apples";+3)

Since most records have multiple Keywords selected I need a way to increase or decrease the numeric value for each Keyword checked.

What am I doing wrong?

Any help you can give is much appreciated.

Heathbo

Link to comment
Share on other sites

PatternCount( KeyWords ; "Apples" ) +

Substitute( PatternCount( KeyWords ; "Bananas" ) ; 1 ; 2 ) +

Substitute( PatternCount( KeyWords ; "Grapefruit" ) ; 1 ; 4 ) +

Substitute( PatternCount( KeyWords ; "Lemons" ) ; 1 ; 8 ) +

Substitute( PatternCount( KeyWords ; "Limes" ) ; 1 ; 16 ) +

Substitute( PatternCount( KeyWords ; "Oranges" ) ; 1 ; 32 )

If there is any possibilty that a second entry of the same value could be made you will require an alternate or revised test for true.

Link to comment
Share on other sites

This topic is 7115 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.