G
Guest
I am adding a new record using the following query:
SELECT ACCOUNT.FK_SalesRep, ACCOUNT.AccountName, ACCOUNT.ContactName,
ACCOUNT.ContactTelephone, ACCOUNT.ContactEmail, ACCOUNT.SIMAP, ACCOUNT.AMEX,
ACCOUNT.WAF, ACCOUNT.PAC, ACTIVITY.Date, ACTIVITY.Comments,
ACTIVITY.Direction, ACTIVITY.Commodity, ACTIVITY.Origin,
ACTIVITY.Destination, ACTIVITY.Volume, ACTIVITY.Service, STATUS.StatusFullName
FROM STATUS INNER JOIN (REP INNER JOIN (ACCOUNT INNER JOIN ACTIVITY ON
ACCOUNT.AccountName = ACTIVITY.FK_AccountName) ON REP.[Sales Rep] =
ACCOUNT.FK_SalesRep) ON STATUS.StatusShortName = ACTIVITY.FK_StatusInitials;
The issue is that I create a new record through a form with this query as
the recordsource. When entering data into this new record, it creates a new
account as well as a new activity associated to that new account. Both the
table "account" and "activity" are updated (related by the "SalesRep"). I
think the problem is that it won't take a new activity because the new
account name has not yet been added to the account table. Any thoughts?
Maybe I should do the new record a different way?
SELECT ACCOUNT.FK_SalesRep, ACCOUNT.AccountName, ACCOUNT.ContactName,
ACCOUNT.ContactTelephone, ACCOUNT.ContactEmail, ACCOUNT.SIMAP, ACCOUNT.AMEX,
ACCOUNT.WAF, ACCOUNT.PAC, ACTIVITY.Date, ACTIVITY.Comments,
ACTIVITY.Direction, ACTIVITY.Commodity, ACTIVITY.Origin,
ACTIVITY.Destination, ACTIVITY.Volume, ACTIVITY.Service, STATUS.StatusFullName
FROM STATUS INNER JOIN (REP INNER JOIN (ACCOUNT INNER JOIN ACTIVITY ON
ACCOUNT.AccountName = ACTIVITY.FK_AccountName) ON REP.[Sales Rep] =
ACCOUNT.FK_SalesRep) ON STATUS.StatusShortName = ACTIVITY.FK_StatusInitials;
The issue is that I create a new record through a form with this query as
the recordsource. When entering data into this new record, it creates a new
account as well as a new activity associated to that new account. Both the
table "account" and "activity" are updated (related by the "SalesRep"). I
think the problem is that it won't take a new activity because the new
account name has not yet been added to the account table. Any thoughts?
Maybe I should do the new record a different way?