Adam McReynolds
Registered User.
- Local time
- Today, 11:16
- Joined
- Aug 6, 2012
- Messages
- 129
I am looking to find if a field contains a number and then build a case statement depending on which number is found. The field will contain data just like this:
Here is my code that did not work:
To Summarize:
1. I need to find if the word "Hybrid" or "Hybrids" is in the field
2. Then I need to know how many to determine a price
Any help would be appreciated!
Repaired frequency response and grounding issues. Replaced 2 Hybrids, capacitors, and connectors. Tested MER/BER and operation to specs.
Here is my code that did not work:
Code:
If Me.txt_work_comm1 Like "*Hybrid" Then
'Sets up auto priced based on number of hybrids entered
'1 hybrid
If Me.txt_work_comm1 Like "*1" Then
strCriteria = "repair_item = 'Charter RF Amplifier Repair + 1 Hybrid' AND profile_types = 'Alpha'"
Me.txt_rate1 = DLookup("[flat_rate_values]", "tbl_module_repairs_client_item_details", strCriteria)
End If
'2 hybrids
If Me.txt_work_comm1 Like "*2" Then
strCriteria = "repair_item = 'Charter RF Amplifier Repair + 2 Hybrids' AND profile_types = 'Alpha'"
Me.txt_rate1 = DLookup("[flat_rate_values]", "tbl_module_repairs_client_item_details", strCriteria)
End If
To Summarize:
1. I need to find if the word "Hybrid" or "Hybrids" is in the field
2. Then I need to know how many to determine a price
Any help would be appreciated!