Re: Access vs VB ado

From: Victor Koch ("Victor)
Date: 02/26/04

  • Next message: William \(Bill\) Vaughn: "Re: Custom Data Provider for .NET"
    Date: Thu, 26 Feb 2004 17:18:12 -0300
    
    

    Hi Len, try this in VB6

    Rs.Open "SELECT ARSUBS02.*,
    ProductNew2.*...................................
    Rs.MoveLast
    debug.print Rs.recordcount

    And Replace " by ' in WHERE Condiction

    WHERE (((ProductNew2.Pub)='GI'))

    --
    Víctor Koch From Argentina.
    "Len" <anonymous@discussions.microsoft.com> escribió en el mensaje
    news:488E9357-B5F2-4090-9D63-05C0D4701A83@microsoft.com...
    > Hi:
    > I'm not sure what forum this should be in.  I have a query is Access2003
    and cut and paste the query to VB6 (SP5) using ADO.   I get a record count
    of 2,391 in Access but 2,238 in VB.  Its easy to see missing records.  Any
    help would be appreciated.  Here's the query:
    >
    > SELECT  ARSUBS02.*, ProductNew2.*
    > FROM ARSUBS02 INNER JOIN ProductNew2 ON ARSUBS02.ITEM = ProductNew2.Code
    > WHERE (((ProductNew2.Pub)="GI"))
    > ORDER BY ARSUBS02.CUSTNO, ARSUBS02.ITEM,ARSUBS02.NR_DATE;
    

  • Next message: William \(Bill\) Vaughn: "Re: Custom Data Provider for .NET"

    Relevant Pages

    • Re: Find Path between relationships
      ... "John Vinson" escribió en el mensaje ... >>How I can do a query to find the path between two ID fields. ... > I'm sorry, Luca, I have no idea what you're asking. ...
      (microsoft.public.access.queries)
    • Re: here is another oracle 10gs bug?
      ... oracle 10g will missing records when insert into table. ... query have no more group by clauses. ... b.sales_qty ymdqty ... the first inner join. ...
      (comp.databases.oracle.server)
    • Re: here is another oracle 10gs bug?
      ... oracle 10g will missing records when insert into table. ... query have no more group by clauses. ... the first inner join. ... Do you truly have a column named YYYYMMDD? ...
      (comp.databases.oracle.server)
    • Re: Newbie question: Queries using quarters
      ... DoCmd.OpenQuery "Your Query Name") ... >I copied and pasted Chris Nebinger's sql into a new ... Quarter' twice, once ... en el mensaje ...
      (microsoft.public.access.gettingstarted)
    • Re: Cant see query using Grid
      ... escribió en el mensaje ... anymore. ... I created the query using the grid and now I only can see the criteria ...
      (microsoft.public.access.adp.sqlserver)