Results 1 to 6 of 6

help with ADODB.Connection

Threaded View

Ivancovish help with ADODB.Connection 12-06-2019, 12:32 AM
jindon Re: help with ADODB.Connection 12-06-2019, 01:14 AM
Ivancovish Re: help with ADODB.Connection 12-06-2019, 06:24 PM
jindon Re: help with ADODB.Connection 12-06-2019, 10:44 PM
Kyle123 Re: help with ADODB.Connection 12-07-2019, 06:11 AM
mjr veverka Re: help with ADODB.Connection 12-07-2019, 12:10 PM
  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.

    With Cnn
            .Provider = "Microsoft.ACE.OLEDB.12.0"
            .ConnectionString = "Data Source=" & ThisWorkbook.FullName & ";Extended Properties=""Excel 12.0;HDR=Yes;""": C_Error = True
            .Open
        End With
    it seems like does not work when I call this

    
    Call Conexion.Abrir_Rs
    
    SQL = " SELECT M.ID As IdM, M.NOMBRES, M.CODIGO As Codigo, P.NOMBRE As NomD, M.FOTO As Foto, M.ESTADO " & _
          " FROM [TB_EMPLEADOS$] M, [TB_DEPARTAMENTOS$] P" & _
          " WHERE M.ID_D=P.ID ORDER BY M.ID"
    
    Rs.Open SQL, Cnn, 1, 1
    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

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. [SOLVED] 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