N
New-user via AccessMonster.com
Hi there,
This is my first post so be gentle.
I need to run a query a number of times ( exporting the results to excel via
transferspreadsheet ) each time the criteria of the Account Number field has
to change based on a set of Account numbers in a table. I am stuck on the
code required to achieve this, I started down the track of creating a
function and using this as a criteria trying to reference the function to a
form. this was causing problamatic. Next I thought there must be someway of
using the table records as the criteria but here I am stuck on the syntax
required in the actual query.
the table is basically a set of account ids
Can anyone help me with code or point me in the right direction - should i be
using a form or function or using the records from the table.
I am able to write the loop on the query but just struggling with changing
the criteria in the query !
Any help would be fantastic !
Thanks!
This is my first post so be gentle.
I need to run a query a number of times ( exporting the results to excel via
transferspreadsheet ) each time the criteria of the Account Number field has
to change based on a set of Account numbers in a table. I am stuck on the
code required to achieve this, I started down the track of creating a
function and using this as a criteria trying to reference the function to a
form. this was causing problamatic. Next I thought there must be someway of
using the table records as the criteria but here I am stuck on the syntax
required in the actual query.
the table is basically a set of account ids
Can anyone help me with code or point me in the right direction - should i be
using a form or function or using the records from the table.
I am able to write the loop on the query but just struggling with changing
the criteria in the query !
Any help would be fantastic !
Thanks!