Hi all,
I'm trying to prevent a user from entering the pound sign (#) into a text box. The text box is used to rename a file using fs.CopyFile. That file is then linked via html, and when the user attempts to follow the link to the file, if a pound sign is in the path, Access thinks it's actually a bookmark or target in the file, and the file cannot be found.
I'm thinking about a simple validation rule, such as Not Like "*#*", but Access intreprets the # sign as any number format. Thus, with "*#*" as the validation rule, Access allows the pound sign, but prevents any number from being entered. I know the pound sign refers to a number format, but I don't know how to reference the actual pound sign. Anyone know how to prevent the literal # sign from being entered?
Thanks
-Patrick
Nine times out of ten, the simplest solution is the best one.
I'm trying to prevent a user from entering the pound sign (#) into a text box. The text box is used to rename a file using fs.CopyFile. That file is then linked via html, and when the user attempts to follow the link to the file, if a pound sign is in the path, Access thinks it's actually a bookmark or target in the file, and the file cannot be found.
I'm thinking about a simple validation rule, such as Not Like "*#*", but Access intreprets the # sign as any number format. Thus, with "*#*" as the validation rule, Access allows the pound sign, but prevents any number from being entered. I know the pound sign refers to a number format, but I don't know how to reference the actual pound sign. Anyone know how to prevent the literal # sign from being entered?
Thanks
-Patrick
Nine times out of ten, the simplest solution is the best one.