M
Mark A. Sam
Hello,
I have a query as a Recordsource for a form. It originally contained two
tables, [Order Entry Header] and [Customers] with an inner join. It was
updateable.
SELECT [Order Entry Header].*, Customers.Custcode,
DateDiff('d',[ordDate],Date()) AS Days
FROM [Order Entry Header] INNER JOIN Customers ON [Order Entry
Header].ordCustID = Customers.Custid
WHERE (((DateDiff('d',[ordDate],Date()))<=701))
ORDER BY [Order Entry Header].ordJob;
I added another table [CustomerAccess] which purpose is to limit the records
by Customer and UserID. This table simply shows which users can access
which customers. The function getUserID tells which User who may have
access to several customers.
SELECT [Order Entry Header].*, Customers.Custcode,
DateDiff('d',[ordDate],Date()) AS Days
FROM ([Order Entry Header] INNER JOIN Customers ON [Order Entry
Header].ordCustID = Customers.Custid) INNER JOIN CustomerAccess ON
Customers.Custid = CustomerAccess.Custid
WHERE (((DateDiff('d',[ordDate],Date()))<=701) AND
((CustomerAccess.UserID)=getUserID()))
ORDER BY [Order Entry Header].ordJob;
Suddenly the Recordset is not updateable. It doesn't make sense to me.
These are linked SQL Server tables, so I thought maybe something in the
field properties or indexes may be the problem, so I imported the
[CustomerAccess] table to see if a local table would fix it, but it didn't.
Any siggestions on how to make this recorset updateable is apprecated.
God Bless,
Mark A. Sam
I have a query as a Recordsource for a form. It originally contained two
tables, [Order Entry Header] and [Customers] with an inner join. It was
updateable.
SELECT [Order Entry Header].*, Customers.Custcode,
DateDiff('d',[ordDate],Date()) AS Days
FROM [Order Entry Header] INNER JOIN Customers ON [Order Entry
Header].ordCustID = Customers.Custid
WHERE (((DateDiff('d',[ordDate],Date()))<=701))
ORDER BY [Order Entry Header].ordJob;
I added another table [CustomerAccess] which purpose is to limit the records
by Customer and UserID. This table simply shows which users can access
which customers. The function getUserID tells which User who may have
access to several customers.
SELECT [Order Entry Header].*, Customers.Custcode,
DateDiff('d',[ordDate],Date()) AS Days
FROM ([Order Entry Header] INNER JOIN Customers ON [Order Entry
Header].ordCustID = Customers.Custid) INNER JOIN CustomerAccess ON
Customers.Custid = CustomerAccess.Custid
WHERE (((DateDiff('d',[ordDate],Date()))<=701) AND
((CustomerAccess.UserID)=getUserID()))
ORDER BY [Order Entry Header].ordJob;
Suddenly the Recordset is not updateable. It doesn't make sense to me.
These are linked SQL Server tables, so I thought maybe something in the
field properties or indexes may be the problem, so I imported the
[CustomerAccess] table to see if a local table would fix it, but it didn't.
Any siggestions on how to make this recorset updateable is apprecated.
God Bless,
Mark A. Sam