Results 1 to 2 of 2

Thread: Loop function

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Question Loop function

    Example:

    table: tblPayment
    InvNo Cid Ino AmtPay DueDate
    A001 001 1 1000.00 12/04/2005
    A001 001 2 .00 24/04/2005
    A001 001 3 .00 30/04/2005
    A001 001 4 500.00 15/04/2005
    A001 001 5 .00 18/04/2005

    How do write the Loop function to select all the Ino where the AmtPay is 0 and display it on a MSFlexGrid1. Please help me in the coding.
    Thanks.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: Loop function

    Your SQL Statement would be along these lines

    VB Code:
    1. SELECT * FROM tblPayment
    2. WHERE AmtPay = 0

    Then it really depends on whether you're using DAO, ADO, ADO.NET etc. etc.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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