Results 1 to 3 of 3
  1. #1
    umass02 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    2

    Refreshing Make table queries within a form?

    Sorry for the vague title. I wasn't sure how to word it.

    I'm sort of an intermediate novice in Access, so bare with me. I have a form that when someone enters various dates and hits run (event procedure), it pulls in information based off of our clients. It runs incredibly slow due to the amount of data it must pull, and I know adding a primary key will increase the speed.

    However, the queries used are select queries, and there are a few of them (one based off of the other). I change them to make table queries, and adjust the macro, but now the final product is based off of the first set of data used.

    So for example, let's say I have 3 clients, Coke, Pepsi, and Snapple. The form allows all three to run, one after the other. With the make table queries as they are (using index tables to add primary keys), when I want to see Coke data, it runs fine. However, when the form pulls data for Pepsi, it gives me Coke data. Similar with Snapple.

    This is because the tables that are created are frozen...so obviously, it'll give me Coke data (since it ran first). Is there anyway to have these make table queries refreshed each time a new client is about to run? Better yet, is there a way of making things go faster without having to run make table queries?

    Sorry for the confusion if any. It's kind of hard to explain.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you can not create a table if the table exists. you need to drop the table first.

  3. #3
    umass02 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    2
    Thanks for the reply Weekend00. I think this may be a VB question more than a query/form question.

    oh the joys of figuring out someone elses's database...

Please reply to this thread with any new information or opinions.

Similar Threads

  1. refreshing form after running query
    By ninachopper in forum Queries
    Replies: 1
    Last Post: 07-12-2010, 04:30 AM
  2. Refreshing queries without opening them
    By trialpayjinn in forum Access
    Replies: 3
    Last Post: 07-01-2010, 05:04 PM
  3. Programmatically make queries read-only.
    By cementblocks in forum Queries
    Replies: 1
    Last Post: 05-14-2010, 10:13 PM
  4. Outlook Table not Refreshing (2007)
    By rglasunow in forum Programming
    Replies: 0
    Last Post: 09-23-2009, 11:50 AM
  5. Add descriptions for make table queries
    By HurrMark in forum Access
    Replies: 0
    Last Post: 12-30-2008, 08:29 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