S
Siew-Ming
Hi,
What's the best way to execute a query 26 times for different file names?
strSql = "UPDATE ASTU7001 INNER JOIN SCAS7001 ON
[ASTU7001].[STULINK]=[SCAS7001].[STULINK] SET SCAS7001.PRIMDISABI = "" WHERE
((([SCAS7001].[PRIMDISABI]) Is Not Null) And (([ASTU7001].[STATUS]) Is
Null));"
db.Execute strSQL, dbFailOnError
MsgBox db.RecordsAffected & " record(s) were updated."
* ASTU7001 and SCAS7002 can be replaced with ASTU7002 and SCAS7002 or
ASTU6001 and SCAS6001.
Thanks for you input in advance,
Sming
What's the best way to execute a query 26 times for different file names?
strSql = "UPDATE ASTU7001 INNER JOIN SCAS7001 ON
[ASTU7001].[STULINK]=[SCAS7001].[STULINK] SET SCAS7001.PRIMDISABI = "" WHERE
((([SCAS7001].[PRIMDISABI]) Is Not Null) And (([ASTU7001].[STATUS]) Is
Null));"
db.Execute strSQL, dbFailOnError
MsgBox db.RecordsAffected & " record(s) were updated."
* ASTU7001 and SCAS7002 can be replaced with ASTU7002 and SCAS7002 or
ASTU6001 and SCAS6001.
Thanks for you input in advance,
Sming