Okay, so I have a program that deletes an entry from the database.
It is linked to the program with an ADOQuery. How can I check if a record with a certain primary key exists in the database? And then it has to take that ID, and then report to the user in a dialog box what the NAme field is of the record with that ID. How would I do that?

SELECT * FROM table WHERE id = 1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.