Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok. Here's what I ended up doing. I created a temp table through VBA code like this: </p> <p>Function createWidgetFilterTemp()<br> Dim mySQL<br> Dim deleteSQL<br> deleteSQL = "DELETE * FROM TempWidgetFilter"<br> mySQL = "SELECT * INTO TempWidgetFilter FROM WidgetFilter" DoCmd.SetWarnings False<br> DoCmd.RunSQL deleteSQL<br> DoCmd.RunSQL mySQL<br> DoCmd.SetWarnings True<br> End Function </p> <p>I Inner Joined TempWidgetFilter and Tests in a query called WidgetCombo. This gave me access to all the Test information and all the Widgets information for only the WidgetIDs that i was interested in. I tried to do the same query with the Select Count(*) statement, but i got the same problem with Access freezing up. So, I then created another temp table through VBA using code like this: </p> <p>Function createWidgetTemp()<br> Dim mySQL<br> Dim deleteSQL<br> deleteSQL = "DELETE * FROM TempWidgetCombo"<br> mySQL = "SELECT * INTO TempWidgetCombo FROM WidgetCombo" DoCmd.SetWarnings False<br> DoCmd.RunSQL deleteSQL<br> DoCmd.RunSQL mySQL<br> DoCmd.SetWarnings True<br> End Function </p> <p>I ran both of these functions whenever I called for the querys from the form. This worked!! It worked fairly quickly, actually. I think it would have worked without the first temp table, but having that as a temp table rather than just a query made another part of my app run faster so i left it. By the way, I had to run it once with the delete line commented off so that it would create the table. I think i might have been able to just create the table by hand, but this way it got all the fields in there in the correct way. Thanks for the help, I hope this helps someone else who comes by in the future looking for temp table help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload