C
Connie Kamrowski via AccessMonster.com
Hi,
I need some help with an array that is driving me batty. I have a database
which stores records about licenses. The user may ask for one or more
licences to be printed, if so I need to check if we have licence and
insurance information for this licence or licences. I cannot allow them to
print the report if we don't have this information To Check this I need to
run this SQL string -
StrSQL = "SELECT tblDAuthorityRenewal.AuthorityRenewalID FROM
tblDAuthorityRenewal WHERE tblDAuthorityRenewal.FeesPaid = -1 AND
tblDAuthorityrenewal.InsuranceSighted = -1"
And store the resultant AuthorityRenewalId's in an Array. I then need to
pass this array to a function, run one or more input authority numbers
against it one at a time to see if they are in this array and if so return
a true to a query to pass them to the report for printing. I also need to
capture the ones that cannot be printed and store them in a seperate array
to present to the user.
I have tried to do this using several examples but have been getting either
a type mismatch or subscript out of range error.. all help appreciated .
Connie
I need some help with an array that is driving me batty. I have a database
which stores records about licenses. The user may ask for one or more
licences to be printed, if so I need to check if we have licence and
insurance information for this licence or licences. I cannot allow them to
print the report if we don't have this information To Check this I need to
run this SQL string -
StrSQL = "SELECT tblDAuthorityRenewal.AuthorityRenewalID FROM
tblDAuthorityRenewal WHERE tblDAuthorityRenewal.FeesPaid = -1 AND
tblDAuthorityrenewal.InsuranceSighted = -1"
And store the resultant AuthorityRenewalId's in an Array. I then need to
pass this array to a function, run one or more input authority numbers
against it one at a time to see if they are in this array and if so return
a true to a query to pass them to the report for printing. I also need to
capture the ones that cannot be printed and store them in a seperate array
to present to the user.
I have tried to do this using several examples but have been getting either
a type mismatch or subscript out of range error.. all help appreciated .
Connie