Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: i think this is a good question

  1. #11
    New Member
    Join Date
    Apr 2002
    Location
    Lawrence, KS
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-19 12:18, Cosmos75 wrote:
    dhoffman,

    How do I pull records from a database, mush less have two two update each other? What would be the access code for what Tommy Bak gave?

    Am trying to lean VBA for excel and Access. I appreciate any help you can give
    It's actually pretty easy to do in VBA, just use Data Access Objects. firsty thing is if you're running code from Excel you need to open the Access database:
    dim db as database
    set db = opendatabase("c:validpathdatabsename")

    Then to retrieve records what I usually do is assign an SQL statement to a string variable and use that to open a recordset like so:
    dim strSQL as string
    dim rs as recordset
    strSQL = "SELECT * FROM TABLE1;" 'or something more complex
    set rs = db.openrecordset(strSQL)

    There are various ways to work with a recordset object. This info is all available in VBA Help. Make sure that your VBA references under Tools > References includes DAO 3.6 Object Library. I hope this helps you get started.

  2. #12
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Millbank, London, UK
    Posts
    1,790
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-19 12:24, Jack in the UK wrote:
    chris D or any of my frriends i do not understandering, my above post asked what some think ment????
    Jack - he then went on to say :

    "Perhpas I get a little carried away, that babbling didn't really make any sense in any language."

    which is cool.... I was having trouble understanding the "donate to volunteer" bit aswell....!

    Oh well, all's well that ends well

  3. #13
    Board Regular
    Join Date
    Feb 2002
    Posts
    3,184
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Cheers Chris...

    the world is getting closer if more troubled, and tolerance is a must something generally is a rule that an exceptance..

    English rules the world as Microsoft Excel does.. but intranslation is can get lost and raws text make it worst.

    but how these guys all over the wold post in english?????

    i tip my hat (thats means good well done)

    Better that I!



    Free Excel based Web Toolbar available here.

    Jack in the UK
    J & R Excel Solutions
    "making Excel work for you"

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •