D
Daniel Haley
I was wondering if someone could please help me with validation rules
for a table. I am running Access 2003.
I have a table called tblSite, which has the following fields:
1. SiteID (Autonumber)
2. SiteName (Text)
3. URL (Hyperlink)
4. DateCreated (Date)
5. DateModified (Date)
I am trying to validate the URL field. It is not a required field.
Here is my (non-functioning) existing rule:
Is Null Or Like ("http://*") Or Like ("https://*") Or Like ("ftp://*")
Or Like ("file://")
It does not work. Here is how it responds in the following situations:
Example Result
------------------------------
Null Value Works
http://test.com Validation message returned
test Validation message returned
If I change the like statements so they are Like("*http://*") -- note
the new wildcard -- it will accept the string I want, but it would also
accept nonsense like "BHDFihttp://"
I'm baffled. Perhaps the colon and slash cannot be used? Can anyone
provide insight?
Thanks,
Dan
for a table. I am running Access 2003.
I have a table called tblSite, which has the following fields:
1. SiteID (Autonumber)
2. SiteName (Text)
3. URL (Hyperlink)
4. DateCreated (Date)
5. DateModified (Date)
I am trying to validate the URL field. It is not a required field.
Here is my (non-functioning) existing rule:
Is Null Or Like ("http://*") Or Like ("https://*") Or Like ("ftp://*")
Or Like ("file://")
It does not work. Here is how it responds in the following situations:
Example Result
------------------------------
Null Value Works
http://test.com Validation message returned
test Validation message returned
If I change the like statements so they are Like("*http://*") -- note
the new wildcard -- it will accept the string I want, but it would also
accept nonsense like "BHDFihttp://"
I'm baffled. Perhaps the colon and slash cannot be used? Can anyone
provide insight?
Thanks,
Dan