Some time ago I was involved in a data conversion between two different automation systems. We were converting DOS information to a SQL database. I was able to execute multiple functions in a single .sql file like:
update dbo.AccountMainTbl0
set SIMSIIRecNbr = SIMSIIRecNbr + 1000000
go
update dbo.AccountMainTbl0
set AccountNumber = left(AccountNumber,2)+substring(AccountNumber,4,2)+'-'+substring(AccountNumber,7,6)
go
update dbo.AccountMainTbl0
set accountnumber = 'PG-'+substring(AccountNumber,6,4)
where substring(AccountNumber,2,1)='p'and substring(AccountNumber,4,1)='g'
Does anybody know how to do this in Access? I don’t want to create and execute multiple updates, would like to execute one Access update file and have it perform multiple tasks.
Later,
Ron--
update dbo.AccountMainTbl0
set SIMSIIRecNbr = SIMSIIRecNbr + 1000000
go
update dbo.AccountMainTbl0
set AccountNumber = left(AccountNumber,2)+substring(AccountNumber,4,2)+'-'+substring(AccountNumber,7,6)
go
update dbo.AccountMainTbl0
set accountnumber = 'PG-'+substring(AccountNumber,6,4)
where substring(AccountNumber,2,1)='p'and substring(AccountNumber,4,1)='g'
Does anybody know how to do this in Access? I don’t want to create and execute multiple updates, would like to execute one Access update file and have it perform multiple tasks.
Later,
Ron--