+ Reply to Thread
Results 1 to 6 of 6

help with ADODB.Connection

  1. #1
    Registered User
    Join Date
    09-01-2019
    Location
    Peru
    MS-Off Ver
    2019
    Posts
    7

    help with ADODB.Connection

    Hello all,

    I need your kind assistance in helping me figure out what is wrong with my code in vba. Let me explain you, I have working with "ADODB.Connection"

    my connection is.

    Please Login or Register  to view this content.
    it seems like does not work when I call this

    Please Login or Register  to view this content.
    It crashed with the message "no value given for one or more required parameters", what I know until now is the Column name(s) is/are wrong (could be CODIGO or/and other), How can I change that Column name or just is another problem?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: help with ADODB.Connection

    Try change to
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-01-2019
    Location
    Peru
    MS-Off Ver
    2019
    Posts
    7

    Re: help with ADODB.Connection

    hello Sir,

    the result is the same, I forgot where I can see columns in SQL? or just I need to change Data source path

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: help with ADODB.Connection

    No one can even guess if your sql string is correct or not.

    Seems OK to me though...

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: help with ADODB.Connection

    You probably don’t want to query the open workbook with ado though, it causes a memory leak.

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: help with ADODB.Connection

    Quote Originally Posted by Ivancovish View Post
    ... what is wrong ... with "ADODB.Connection" ...
    1. Have you seen this guide ?
    https://www.connectionstrings.com/excel/

    2. Don't use (maybe ?) the "cnn" and "rs" variables as public (Public Cnn As ADODB.Connection, Public Rs As ADODB.Recordset), but as local
    You have "so many" connections in modules that maybe they conflict with each other (?)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If statement wiht and or
    By jimmiboy in forum Excel General
    Replies: 5
    Last Post: 04-23-2017, 12:02 PM
  2. [SOLVED] Help wiht INDEX function
    By suspun in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-19-2015, 03:03 PM
  3. [SOLVED] How to SUM data wiht the common header?
    By lch93lily in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2014, 01:35 AM
  4. Index for a row only on cells wiht a specific header
    By Sparkplug90 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-06-2013, 08:46 PM
  5. Problem wiht a basic loop
    By soundgarden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2012, 01:52 AM
  6. [SOLVED] what's wrong wiht my bar graph in excel?
    By maggie in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-22-2006, 01:40 PM
  7. sum wiht an if or vlookup?
    By Chip Smith in forum Excel General
    Replies: 1
    Last Post: 03-31-2006, 02:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1