Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Displaying data from Database in VC++ [modified]

Displaying data from Database in VC++ [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
databasec++tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vjasai
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • V vjasai

      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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups