On Fri, 17 Dec 2010 00:43:02 -0800 (PST), dochsm
<(E-Mail Removed)> wrote:
>Yes I did. I made a temp table with the same structure as my original
>data (a linked csv fife) except that I changed the weeknum type to
>integer and indexed it. Then I used a delete query to clear out all
>the records followed by an append with a Val() to convert my weeknum
>to integer and refill it each week. Then I used that temp table as the
>source of the query you helped me with.
>I'd prefer to use a make table
>instead of delete followed by an append as I suspect that would be
>faster to do that bit
There is very little difference in performance between a make table
vs. a delete all followed by an append.
>while at the same time defining a data type and an index (as
>opposed to using DDL to to just make an empty table)
When doing an insert of a lot of records, and it isn't a multi-user
table, it is much faster to remove all indexes, insert the records and
then create the indexes in code.
Also to avoid the bloating mentioned by Marshall see the
TempTables.MDB page at my website which illustrates how to use a
temporary MDB in your app.
http://www.granite.ab.ca/access/temptables.htm
Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages -
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -
http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see
http://www.autofeupdater.com/