I'm trying to write a function to place in a loop
I want to pass a date through the function to return a true or false value
This is what I have so far..
------------------------
Do until rst.EoF
dte = rst("Date")
IF TSExists(Dte) = "True" THEN
Do this
ELSE
Do this
END IF
rst.movenext
LOOP
------------------------
<% Function TSExists(Dte)
TSExists = "False"
pass 'dte' through a query
If recordcount <> 0 Then TSExists = "True"
END Function %>
When I run the page I receive this error:
Type mismatch: 'TSExists'
Any help will be appreciated
J
I want to pass a date through the function to return a true or false value
This is what I have so far..
------------------------
Do until rst.EoF
dte = rst("Date")
IF TSExists(Dte) = "True" THEN
Do this
ELSE
Do this
END IF
rst.movenext
LOOP
------------------------
<% Function TSExists(Dte)
TSExists = "False"
pass 'dte' through a query
If recordcount <> 0 Then TSExists = "True"
END Function %>
When I run the page I receive this error:
Type mismatch: 'TSExists'
Any help will be appreciated
J