L
Lee
I inherited the Insert Into query below:
INSERT INTO TblTempAccount ( ID, AccountNumber)
SELECT AccountInfo.ID, PrivateAccount.AccountNumber
FROM ((AccountInfo LEFT JOIN PrivateAccount ON
AccountInfo.ID=PrivateAccount.ID)
LEFT JOIN TblBilling ON AccountInfo.ID = TblBilling.ID)
WHERE (((PrivateAccount.AccountNumber) Is Not Null And
(PrivateAccount.AccountNumber)<>'' And
(PrivateAccount.AccountNumber)<>IsNull
(AccountInfo.AccountNumber))) Or
(((AccountInfo.AccountNumber)<>''))
This query ran fine on Access Tables but I've upsized to
Sql Server and now whenever this is run I get the
message "Record is deleted". There are no Unique indexes
on the TblTempAccount table. In addition What does the
(PrivateAccount.AccountNumber)<>IsNull
(AccountInfo.AccountNumber) part of the where clause do?
It runs ok if I SELECT DISTINCT. Anybody have an idea as
to what's going on here?
INSERT INTO TblTempAccount ( ID, AccountNumber)
SELECT AccountInfo.ID, PrivateAccount.AccountNumber
FROM ((AccountInfo LEFT JOIN PrivateAccount ON
AccountInfo.ID=PrivateAccount.ID)
LEFT JOIN TblBilling ON AccountInfo.ID = TblBilling.ID)
WHERE (((PrivateAccount.AccountNumber) Is Not Null And
(PrivateAccount.AccountNumber)<>'' And
(PrivateAccount.AccountNumber)<>IsNull
(AccountInfo.AccountNumber))) Or
(((AccountInfo.AccountNumber)<>''))
This query ran fine on Access Tables but I've upsized to
Sql Server and now whenever this is run I get the
message "Record is deleted". There are no Unique indexes
on the TblTempAccount table. In addition What does the
(PrivateAccount.AccountNumber)<>IsNull
(AccountInfo.AccountNumber) part of the where clause do?
It runs ok if I SELECT DISTINCT. Anybody have an idea as
to what's going on here?