CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Delete Database information

    In my applicaton I have created an Access Database where I am populating it with file information.(The mdb file is stored locally)

    Example
    File Information Table

    # | Path | File | Created On | Modified Date | Version Info | Description

    Can someone please tell me how I would go about deleteing all the records stored in each column and row?

    I have tried to close and unload the recordset and then delete the entire mdb file but have had no luck. So I thought if rather than trying to delete the database I could just clear all the information out of it.


    The reason why I am wanting to do this is so the user doesnt have to close the application and reopen it to build a new package.

    Any suggestion would be greatly appreciated!!!!
    Thanks
    Tcompe




  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Delete Database information

    try using standard SQL:
    DELETE FROM yourTableName;


  3. #3
    Guest

    Re: Delete Database information

    Thanks
    I dont know what I was thinking.... That worked perfectly....

    Thanks agian



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

Featured