Displaying data from Database in VC++ [modified]
-
Hi, I have an MSAccess DB in which there are two tables (Login_Details and Account_Details). I have created as SDI app.The view is associated with Account_Details table. I added another dialog for logging in. When user enters login name and password, I am able to validate the same with back end DB. After popping up the message box login successful, the form with Account details should come. But I am getting a popup "Data Source name not found and default driver not specified" and then it is showing the form with controls but no data displayed in the form. Please let me know how to solve this..I mean how to display data in the form after login is successful? Thanks & Regards, VjaSai
modified on Wednesday, February 27, 2008 10:12 AM
-
Hi, I have an MSAccess DB in which there are two tables (Login_Details and Account_Details). I have created as SDI app.The view is associated with Account_Details table. I added another dialog for logging in. When user enters login name and password, I am able to validate the same with back end DB. After popping up the message box login successful, the form with Account details should come. But I am getting a popup "Data Source name not found and default driver not specified" and then it is showing the form with controls but no data displayed in the form. Please let me know how to solve this..I mean how to display data in the form after login is successful? Thanks & Regards, VjaSai
modified on Wednesday, February 27, 2008 10:12 AM
Have you tried removing the dialog, and related code, that asks for login name and password? Isolate the problem rather than try to debug with a bunch of stuff mixed together. As an aside, you might start with a plain SDI application that is hooked to the Account_Details table. Once you get that displaying properly, migrate the login stuff back in.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne