Results 1 to 4 of 4

Thread: [RESOLVED] Access

  1. #1

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Resolved [RESOLVED] Access

    Hi!!

    How do i from vb 2005 add a new record to a access DB and then save it?
    (Sry my enlgish)

  2. #2
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Re: Access

    I think, You wanna to add a record in ACCESS Table using VB2005..If it is so,,

    then build a recordset..
    VB Code:
    1. set rst=db.openrecordset(sql statement)
    then add a new row to recordset using
    VB Code:
    1. rst.addnew
    and then fill out all the required info in the new row like
    VB Code:
    1. rst(0)=xyz
    and then update the new record using update method..ex:
    VB Code:
    1. rst.update

    ** This is what I used to do in VB6.0,I dont see VB2005 till now and so I dont know the correct syntaxes of it..If any one responded with correct syntaxes of 2005 then it will be greatly helpful 4 both of us..

    All the best...
    Last edited by nagasrikanth; May 15th, 2006 at 02:32 AM. Reason: small mistake in code..
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Access

    vb 2005 = .net (I think) - post in that forum.. The may have some simple tutorials to follow too.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: Access

    Thks guys!!
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

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