Hello,
How do I make Master-Detail link show up in row only if record exist (like primary ID) and hide it if no record? By default it links you to List page "No records found
"
I need to put make this code somehow.. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=4660&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />
That's what I tried, but it did not work.
strSQLExists = "select ID from dbo.Table2 where ID = 'This should be variable that = ID from Table 1 (ID in the row in Table1_list.asp)' "
set rsExists = CreateObject("ADODB.Recordset")
rsExists.Open strSQLExists, dbConnection
if not rsExists.eof then
value=""
row.Add col & "Change_value", "Exists"
else
value=""
row.Add col & "Change_value", "Not-Exists"
end if
rsExists.Close : set rsExists = Nothing
Then I tried to assign {$row.1Change_value} in Table1_list.html template instead of actual Master-Detail link.
Thank you