Results 1 to 7 of 7

Thread: VB2008: Add Sub Routine stopped working

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Location
    Oldbury West Midlands UK
    Posts
    9

    VB2008: Add Sub Routine stopped working

    I'm new to databases and cannot work out what has gone wrong with my code. It worked the first few times. Then it just suddenly stopped when clicking the Add new record button, I do not get cleared txt/dtp input boxes.

    Any help in educating me by improving my code or informing me of what has gone wrong would be fully appreciated.

    I have hopefully, followed the correct actions to attach form code.

    I am using Windows 7 and Visual Studio 2008 Pro.
    Last edited by Kenkob; Dec 11th, 2009 at 06:36 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB2008: Add Sub Routine stopped working

    What code are we trying to improve?

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Location
    Oldbury West Midlands UK
    Posts
    9

    Re: VB2008: Add Sub Routine stopped working

    The attached code named frmComCars.vb

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: VB2008: Add Sub Routine stopped working

    there isn't anything attached.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Location
    Oldbury West Midlands UK
    Posts
    9

    Re: VB2008: Add Sub Routine stopped working

    I clicked on the button Manage Attachments, Browsed to my code, and then clicked Upload. There appears to be no further action except to close the form.

    OOPS! Have just spotted the paper clip above. Please accept my apologies for wasting your time but I am new to all of this. Please except my thanks in advance for your kind offer to advise and help me.

    frmComCars.vb

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Location
    Oldbury West Midlands UK
    Posts
    9

    Re: VB2008: Add Sub Routine stopped working

    tg,
    Hoping to resolve my problem myself over the weekend, I appear to have made things a little worse.

    Another subroutine I had working now appears to have stopped. This was not included in the previous download but is attached here. I've taken the liberty of attaching the complete codefrmComCars.vb.

    I am a amatuer programmer (I hope) and this is my first attempt at attempting to write a small program correctly as a favour for a friend.
    Code wiae, I've only ever seen code published in books, tutorials and or samples.

    I would be extremely pleased to see a professional finish or your advise on what else I need to do once the program is working.

    K

  7. #7

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Location
    Oldbury West Midlands UK
    Posts
    9

    Angry Re: VB2008: Add Sub Routine stopped working

    tg,

    Have resolved my second problem.

    However, I have failed to determine why the code in the first download will not permit me to Add records to the database. It performs all other functions correctly.

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