Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    157

    Unanswered: Needs help in query

    : Hi: Can any one please tell me how to i run a query on the basis of values in excel file column A. I mean thru loop it pulls values one by one from column A and pass into query: where b.clt_ref_no='6000221454'

    select a.check_no,b.clt_ref_no,b.debt_id from pmt a inner join debt b on a.debt_id=b.debt_id where b.clt_ref_no='6000221454'
    if there is a value in field a.check_no then it print that value otherwise it print OX in column E but it start from postion E2 as E1 is the header in the column.

  2. #2
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,848
    ref Using ADO with Excel at a sister-site.
    Lou
    使大吃一惊
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Posting Permissions

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