thanks for that - at least now i understand what is going on
parameters resolved through literal string concatenation is the way i have pretty much gone up until now and it is now that i have a fairly complex set of stacked queries that this option becomes not available to me, queries lower down in the stack have to pull information from the form and so i can't just store the data in a variable or take straight from the form and use literal string concatenation
i think from now on i will avoid ado / dao whenever possible, i am also having a look at my design to see how it can be improved
unfortunatly this particular bit where i loop through a recordset building other queries cannot really be avoided as far as i can see, these are the make table queries
possibly they don't need to be make table queries, the end result is to export excel files (and this definitly definitly needs to happen it is one of the main purposes of the db) but there are other ways of making excel files - whatever happens though i'd still need to build some sort of query and its still going to be based on a stack of other queries
where i may well be able to improve the design however is to fundementally change the way in which the data is imported so that (hopefully) i can do all this processing in a single sql statement removing the need for the stacked queries, then my problem is solved.. back to literal string concatenation
i will have a look at the db and post my proposed change see what you think, i know what i intend to do pretty much but just to keep the length of this post down as much as anything else
parameters resolved through literal string concatenation is the way i have pretty much gone up until now and it is now that i have a fairly complex set of stacked queries that this option becomes not available to me, queries lower down in the stack have to pull information from the form and so i can't just store the data in a variable or take straight from the form and use literal string concatenation
i think from now on i will avoid ado / dao whenever possible, i am also having a look at my design to see how it can be improved
unfortunatly this particular bit where i loop through a recordset building other queries cannot really be avoided as far as i can see, these are the make table queries
possibly they don't need to be make table queries, the end result is to export excel files (and this definitly definitly needs to happen it is one of the main purposes of the db) but there are other ways of making excel files - whatever happens though i'd still need to build some sort of query and its still going to be based on a stack of other queries
where i may well be able to improve the design however is to fundementally change the way in which the data is imported so that (hopefully) i can do all this processing in a single sql statement removing the need for the stacked queries, then my problem is solved.. back to literal string concatenation
i will have a look at the db and post my proposed change see what you think, i know what i intend to do pretty much but just to keep the length of this post down as much as anything else
