MHadden
Programmer
- May 13, 2001
- 105
Greetings All:
I have need to check a field to see if it contains the string "GEN" if it only contains this string the following code works great, however, almost all of the textboxes contain a 10 letter word & these three letters show up in some of them.
I have tried many different variations with no success. I'm posting now in hopes that someone can help.
Any help is appreciated!
- Michael
MichaelHadden@yahoo.com
If you give someone a fish, you have given them a meal. If you teach someone to fish, you have given them MANY meals!
I have need to check a field to see if it contains the string "GEN" if it only contains this string the following code works great, however, almost all of the textboxes contain a 10 letter word & these three letters show up in some of them.
I have tried many different variations with no success. I'm posting now in hopes that someone can help.
Code:
Private Sub Form_Current()
If [Product_Number].Seltext = "*GEN*" then
frmProductsAvailable.IsVisible true
else
frmProductsAvailable.IsVisible False
End If
End Sub
Any help is appreciated!
- Michael
MichaelHadden@yahoo.com
If you give someone a fish, you have given them a meal. If you teach someone to fish, you have given them MANY meals!