Results 1 to 4 of 4

Thread: Clausole WHERE in select with summ of fileds

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,943

    Clausole WHERE in select with summ of fileds

    How to filter witha where condition is a summ of fileds?
    example "select filed1,filed2,filed3, from Table where summ of filed4+filed8+filed10<>0"
    Tks.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Clausole WHERE in select with summ of fileds

    You have it... just too many words:
    select filed1,filed2,filed3, from Table where filed4+filed8+filed10<>0

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,943

    Re: Clausole WHERE in select with summ of fileds

    Quote Originally Posted by techgnome View Post
    You have it... just too many words:
    select filed1,filed2,filed3, from Table where filed4+filed8+filed10<>0

    -tg
    Hi tg all ok!

    But i have see the query take a lot of time to extract the result!!!
    Wath is the best code to open table and extract the valu of fileds in question...
    Suggest me a good cursor a goo data type (KEYSET, DIRECT KEYSET ECC...)...

    Note:
    - i use acces database
    - the number of value in fileds are approx 4.500.000
    - i use tipcal ado conn
    - the acces database is located on a server dir similar \\myserver\mydir\mydb.mdb
    - i need only to read value in fileds

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Clausole WHERE in select with summ of fileds

    The same as you have been told multiple times before... if you need a reminder, read the FAQ article What do the parameters of the recordset.Open method mean? for some of it.

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