Is it possible, in an append query, to repete and increment a parameter in a for next loop and run the query whithout be asked by a prompt message to insert the new parameter value?
John fill appears to be headed down the right path. Somewhere in all of the stufffffff, there needs to actually be a loop, and the "PARAMETER" is rather vague (the function GetInt). The declaration for xxx MUST be in the declaration section of a General module and it would be helpful to note this explicitly in the post (after all, Bambini would not be asking this if they were experts?).
In a more FORMAL appliction, I suspect that the use of an actual PARAMETER is necessary, to have the query select some data from a seperate recordset. this may also be accomplished in the loop, as long as the parameter value may be assigned on the basis of the loop index, but would require the query be defined and instantiated as a querydef.
MichaelRed
redmsp@erols.com
There is never time to do it right but there is always time to do it over
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.