Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    june, i took out the format but its still extremely slow to process. im assuming its taking long because it has to create the subquery in the column. Would it be faster if i just created the sub query on my own and then create another query with the subquery+original query? This is the query that is currently being ran in the "Count" function of my original query:



    Count: (SELECT Count(AMR_AIS_Num) + 1 AS RowNum FROM
    qry_select_only_missingdata_or_unabletoconnect_by_ group As Dupe WHERE Dupe.AMR_AIS_Num<
    qry_select_only_missingdata_or_unabletoconnect_by_ group.AMR_AIS_Num)


    If i create a query that will do:
    (SELECT Count(AMR_AIS_Num) + 1 AS RowNum FROM
    qry_select_only_missingdata_or_unabletoconnect_by_ group As Dupe

    and then a separate query that does:
    WHERE Dupe.AMR_AIS_Num<
    qry_select_only_missingdata_or_unabletoconnect_by_ group.AMR_AIS_Num)


    and then joining the result of THAT query with my original query, do you think that will speed things up? Let me know, thanks!!

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I doubt it will be faster but try it.

    The only alternative I can see is VBA code as mentioned in earlier post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #18
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    heres a picture of how i currently have it if you are confused...Click image for larger version. 

Name:	count.JPG 
Views:	3 
Size:	37.7 KB 
ID:	7812
    Attached Thumbnails Attached Thumbnails count.JPG  

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That all looks correct. That this query can run slow is not new to me and I don't know what could be done, if anything, to make it faster. I can't take credit for originality, I found the query syntax on web. I have never actually needed it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    i see, thanks june for all the help anyways

  6. #21
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    i tried doing an alternate way that would be faster. create a table with an autonumber and append my IDs that i want to be sequenced into it and then add the autonumber count values from that table to the my query. The only problem is, the autonumber count seems to keep going after new IDs has been appended to it. How do i get it to restart at 1 when i run the append query? thanks!

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Something else I have never done.

    Maybe this will help http://support.microsoft.com/kb/209696
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 02-07-2012, 08:38 PM
  2. Query results to include descriptions
    By funkygoorilla in forum Queries
    Replies: 4
    Last Post: 02-07-2012, 11:07 AM
  3. Replies: 3
    Last Post: 01-05-2012, 12:04 PM
  4. Include zero values in below query!
    By daffykyle in forum Access
    Replies: 3
    Last Post: 11-30-2011, 08:56 AM
  5. Only include unique occurances
    By filla_dilla in forum Queries
    Replies: 8
    Last Post: 07-18-2011, 10:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums