[tt][blue]
sql = "SELECT ProjectID FROM [Notes] WHERE [Projects].[ProjectID]=" & session("DebtorID") & [!]"[/!] GROUP BY ProjectID[!]"[/!]
[/blue][/tt]
Still... there's something a little hinky about your query. You appear to be selecting from a notes table, but your where clause references [[!]Projects[/!]].[ProjectID][/!], which appears to be another/different table.
If you explain a little more about your table structures and how these two tables relate to each other, I'm sure we can find a better way. You see, there's really no reason to return a recordset to ASP just so you can delete the data. Instead, you should be able to write a single query that does all the work for. I can help with this, but I would need to understand how the 2 tables relate to each other.
One more thing if there is a quick solution to how I could prompt yes or no to the user asking them do they want to really delete this record that would be awsome
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.