Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    gnrmjd is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    12

    Ahh interesting. Ok. That sounds good. Thanks for all the help, I'm going to look into doing it that way, like you said. I'm a little worried because the application that I'm replacing with Outlook that my company had already, was doing a similar thing - making queries dynamically based on user input, and it was very slow.

    But we were thinking of making some views and things to help with the speed since the tables are so large and not all information is necessary. I'm just worried that if I do queries without any thinking about how to optimize them it could be still just as slow, but I think it's still worth it to move to outlook because of the customizable user interface.

  2. #17
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    One last thing, just to clarify, when I talk about building the queries dynamically using VBA via Form selections. Typically, what I do is use the Form selections to build the SQL code that I need (using VBA), and then I assign that SQL code to a pre-existing query name (that I just keep overwriting every time). So the resulting query itself is "self-contained", in that it doesn't include any references to any Forms or anything like that. And I can easily return the results quickly by opening the query in my last step.

    As far writing Access query code via VBA (if you go that route instead of using a pass-through query), to get the Access query syntax, I find it very helpful to build a "sample" query that does what I need to do, then switch it to SQL View, and use that code as my guide for building the code in VBA.

    Best of luck, and remember, you can always post back to this forum if new questions arise.

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

Similar Threads

  1. Query Failing When No Data
    By gazzieh in forum Queries
    Replies: 1
    Last Post: 12-17-2013, 09:42 AM
  2. Update Query functioning in second attempt
    By drunkenneo in forum Programming
    Replies: 2
    Last Post: 11-18-2013, 05:12 AM
  3. Query Linked Back End Tables
    By AKoval in forum Queries
    Replies: 1
    Last Post: 02-15-2013, 09:14 PM
  4. Multiple linked tables query
    By cchampagne17 in forum Queries
    Replies: 3
    Last Post: 07-31-2012, 07:42 PM
  5. Replies: 13
    Last Post: 07-05-2012, 10:33 AM

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