...single quote as being the end of what is to be executed and will attempt to run that and the remenants of the string.
It will try to run
select x.*,getdate() as datum
from openrowset(''SQLOLEDB'',''SERVER1'';''user'';''pw'',''
select anr,alist,aidnr,
(select sum(bpstueck) from...