CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Posts
    146

    Unhappy Add, Update & Delete Record -- HELP!!

    I have to make a HOTEL Database Management system and there are a few problems I am facing:

    1) How do I Add a record to an existing record?
    2) How do I Delete a record?
    3) How do I update a record?

    I need to know the simplest examples in which these functions are performed since I am not familiar with them, any help will be greatly appreciated, please help me out! Thanks!

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Add, Update & Delete Record -- HELP!!

    If you're using MFC, look at the CDatabase and CRecordset classes
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Mar 2009
    Posts
    20

    Re: Add, Update & Delete Record -- HELP!!

    use 2d arrays moiz!

  4. #4
    Join Date
    Jan 2009
    Posts
    146

    Re: Add, Update & Delete Record -- HELP!!

    Quote Originally Posted by arshad115 View Post
    use 2d arrays moiz!
    Ah ok Arshad! but how do I delete records using 2D arrays?

  5. #5
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Add, Update & Delete Record -- HELP!!

    The problem is too generic. We need to have some idea of what data structure you're using before we can help with how to manipulate it.

  6. #6
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Lightbulb Re: Add, Update & Delete Record -- HELP!!

    Quote Originally Posted by Lindley View Post
    The problem is too generic. We need to have some idea of what data structure you're using before we can help with how to manipulate it.
    Also... please stop adding 'HELP!!' to your topic titles.

  7. #7
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Add, Update & Delete Record -- HELP!!

    Quote Originally Posted by Elite Commando View Post
    Ah ok Arshad! but how do I delete records using 2D arrays?
    You don't. Superman gave you the right answer.

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