Results 1 to 8 of 8

Thread: I seriously need some help with this simple DAO DB!

  1. #1

    Thread Starter
    Lively Member haruki's Avatar
    Join Date
    Mar 2005
    Location
    Shibuya / Japan
    Posts
    118

    Angry I seriously need some help with this simple DAO DB!

    Take a look at this project.


    I HAVE NO IDEA how to make this work!!

    When I press delete it should delete the record im currently on, and when it has deleted it it should view the next record.

    Ex; I want to delete record nr 3 out of 5. When it is deleted it should view the 4 / 5 but as the 3'rd record is deleted it will be 3 / 4.

    I cannot make this work, the MoveLast and AbsolutePosition, RecordCount is confusing. CAN anyone help?

    I've included the project.
    Attached Files Attached Files
    Last edited by haruki; Apr 12th, 2005 at 03:04 PM.

  2. #2
    Lively Member
    Join Date
    Apr 2005
    Posts
    91

    Re: I seriously need some help with this simple DAO DB!

    Hi I'm having a look at your project I'm trying to get the record position in the cmd_delete and then working from there. Not very good with DAO. I'll try again later.

    Fishy

  3. #3

    Thread Starter
    Lively Member haruki's Avatar
    Join Date
    Mar 2005
    Location
    Shibuya / Japan
    Posts
    118

    Re: I seriously need some help with this simple DAO DB!

    Thnx. I appreciate it!

  4. #4
    Lively Member
    Join Date
    Apr 2005
    Posts
    91

    Re: I seriously need some help with this simple DAO DB!

    Hi,

    I think I've sorted it. If not I'll look again. Yes ADO is much better and easier.
    Attached Files Attached Files

  5. #5

    Thread Starter
    Lively Member haruki's Avatar
    Join Date
    Mar 2005
    Location
    Shibuya / Japan
    Posts
    118

    Re: I seriously need some help with this simple DAO DB!

    Yes, I agree. Thats why I use it now, I didnt know if I would get an answer so I looked for some ADO examples at pscode and build up the applikation all over again.


    A question. Can I load the database without a ADODC ?

  6. #6
    Lively Member
    Join Date
    Apr 2005
    Posts
    91

    Re: I seriously need some help with this simple DAO DB!

    It Just depends on the driver you are using to get the data and controls to
    show it.

  7. #7

    Thread Starter
    Lively Member haruki's Avatar
    Join Date
    Mar 2005
    Location
    Shibuya / Japan
    Posts
    118

    Re: I seriously need some help with this simple DAO DB!

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database.mdb;Persist Security Info=False


    Is there another way to load a database than using a ADODC controller.

  8. #8
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: I seriously need some help with this simple DAO DB!

    Yes, you can just use an ADODB Connection and Recordsets, there is a tutorial at the top of this forum which explains how to do it

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