If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Field Validation Rule to Exclude Ampersand
I am trying to create a validation rule for a table field that will prevent
the use of the ampersand character (&). InStr(1,[strClientName],"&",1)0 does not work. What is the correct syntax? -- Ken Hudson |
#2
|
|||
|
|||
Field Validation Rule to Exclude Ampersand
Try
Not Like "*&*" -- Ken Snell http://www.accessmvp.com/KDSnell/ "Ken Hudson" wrote in message ... I am trying to create a validation rule for a table field that will prevent the use of the ampersand character (&). InStr(1,[strClientName],"&",1)0 does not work. What is the correct syntax? -- Ken Hudson |
#3
|
|||
|
|||
Field Validation Rule to Exclude Ampersand
Thanks Ken.
That works also. -- Ken Hudson "Ken Snell" wrote: Try Not Like "*&*" -- Ken Snell http://www.accessmvp.com/KDSnell/ "Ken Hudson" wrote in message ... I am trying to create a validation rule for a table field that will prevent the use of the ampersand character (&). InStr(1,[strClientName],"&",1)0 does not work. What is the correct syntax? -- Ken Hudson . |
#4
|
|||
|
|||
Field Validation Rule to Exclude Ampersand
I found my problem.
InStr(1,[strClientName],"&",1)=0 is the correct syntax. -- Ken Hudson "Ken Hudson" wrote: I am trying to create a validation rule for a table field that will prevent the use of the ampersand character (&). InStr(1,[strClientName],"&",1)0 does not work. What is the correct syntax? -- Ken Hudson |
Thread Tools | |
Display Modes | |
|
|