I try to find if a record exist using OwnerID. If it exist to redirect into anther page or to continue with the add page.
That is the code but it seems it does not working. Please help.
'** Check if specific record exists ****
dim rsExists
set dal_table=dal.Table("Address")
dal_table.Param("PMP") = (Session("OwnerID"))
set rsExists = dal_table.Query("T_Kodikas='null'","")
if not rsExists.eof then
Response.Write "record exist"
else
Response.Write "record dont exist"
end if
rsExists.Close : set rsExists = Nothing
'dal.Table("Cars").Value("Make")
' Place event code here.
' Use "Add Action" button to add code snippets.