Results 1 to 3 of 3

Thread: database error?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    Question database error?

    Hello people,
    I have made a project with a database.
    so i have one form with bound textboxes and stuff in which you can fill out information about a person, you can keep adding people with a counter and all that.
    It seems to work good in runtime, but when I close the app and run it again something weird happens. For example when I save;
    Person 1: John Smith
    Person 2: Ella Forella
    Person 3: Bavis Bomba
    and then close and reopen I get this in my gridview and bound info controls:
    Person 1: John Smith
    Person 2: John Smith
    Person 3: John Smith
    If anyone knows whats going on, please help me.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: database error?

    Obviously you're doing something wrong but as we have no idea what you're doing there's no way that we can tell you what's wrong with it. I guess the first thing to do would be to look in the database itself to see what data is in there. That will tell you whether the issue is on the save side or the load side and then you can investigate further from there.

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,989

    Re: database error?

    If the database is correct, such that the problem has to be on the load side, I would guess that you are getting fouled up copying reference types, but that's pure speculation. We'd have to see more to be sure, but exactly what is hard to say.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width