help in compile error

C

cliff

Hi, when I run the following query , I get the following error :
compile error. in query question 'nz(dmax("iteration","tbl_rndnumstore"),0)+1'


INSERT INTO tbl_RndNumStore ( Iteration, numvalue, ruleid )
SELECT NZ(DMax("Iteration","tbl_RndNumStore"),0)+1 AS Expr1,
tbl_RndNum1.numvalue, tbl_rndnum1.ruleid
FROM tbl_RndNum1;


Please help to solve it

thanks

cliff
 
B

Bob Barrows

cliff said:
Hi, when I run the following query , I get the following error :
compile error. in query question
'nz(dmax("iteration","tbl_rndnumstore"),0)+1'


INSERT INTO tbl_RndNumStore ( Iteration, numvalue, ruleid )
SELECT NZ(DMax("Iteration","tbl_RndNumStore"),0)+1 AS Expr1,
tbl_RndNum1.numvalue, tbl_rndnum1.ruleid
FROM tbl_RndNum1;
Are you running this via ADO? From an external application? If so, Nz is an
Access-defined function that is not available to external applications. You
will need to replace it with iif.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top