CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: question about dynamically select table with DAO technique!

    So, it has nothing to do with DAO!
    Check all your Format arguments!
    Victor Nijegorodov

  2. #17
    Join Date
    Mar 2010
    Posts
    22

    Re: question about dynamically select table with DAO technique!

    [img]
    G:\debug.JPG
    [/img]

  3. #18
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: question about dynamically select table with DAO technique!

    Quote Originally Posted by genliu777 View Post
    how to post an jpg image here!??
    Have a look at the button Manage Attachments under the message window in Additional Options section.
    And note, that the data in *text* mode are more preferable (if, of course it is possible) than in an *image* mode
    Victor Nijegorodov

  4. #19
    Join Date
    Mar 2010
    Posts
    22

    Re: question about dynamically select table with DAO technique!

    ok! i try again! wish good!

    thanks for your time with me!!!!

  5. #20
    Join Date
    Mar 2010
    Posts
    22

    Re: question about dynamically select table with DAO technique!

    here is the call stack window!
    Attached Images Attached Images  

  6. #21
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: question about dynamically select table with DAO technique!

    And where is in this call stack any line of *your* own code? Please find it out!
    Victor Nijegorodov

  7. #22
    Join Date
    Mar 2010
    Posts
    22

    Re: question about dynamically select table with DAO technique!

    [code]
    strTable.Format(_T("INSERT INTO %s %s %s VALUES %s"),tbname,field,field1,fvalue);
    [code]

  8. #23
    Join Date
    Mar 2010
    Posts
    22

    Re: question about dynamically select table with DAO technique!

    Code:
    strTable.Format(_T("INSERT INTO %s %s %s VALUES %s"),tbname,field,field1,fvalue);

  9. #24
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: question about dynamically select table with DAO technique!

    Quote Originally Posted by genliu777 View Post
    Code:
    strTable.Format(_T("INSERT INTO %s %s %s VALUES %s"),tbname,field,field1,fvalue);
    Debug your code and look at the Variables window the values of all the parameters you pass in the strTable.Format(...) call
    Victor Nijegorodov

  10. #25
    Join Date
    Mar 2010
    Posts
    22

    Re: question about dynamically select table with DAO technique!

    yes it is caused by the function "Format"!!!!


    thanks VictorN!!!!!

Page 2 of 2 FirstFirst 12

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