Hello!
I have a problem with listboxes which I refresh via Form_Current().
Access continuesly refreshes the listbox, so it is impossible to work with it.
Of course, I only want the query to be executed only once and then nothing else should happen. THIS problem only occurs in case I have a function like nettotalj(...) integrated in the query. Without a function the query works nicely (executed only once). Isn't that a strange behaviour? Can somebody help me here? Thanks in advance!!! Frank
I have a problem with listboxes which I refresh via Form_Current().
Access continuesly refreshes the listbox, so it is impossible to work with it.
Of course, I only want the query to be executed only once and then nothing else should happen. THIS problem only occurs in case I have a function like nettotalj(...) integrated in the query. Without a function the query works nicely (executed only once). Isn't that a strange behaviour? Can somebody help me here? Thanks in advance!!! Frank
Code:
SELECT Jobs.JobID, Jobs.status AS Status, Customers.Company_Name AS [Customer Name], Jobs.DeliveryDeadline AS [Delivery Deadline], nettotalj([jobs]![JobID],[jobs]![tax]) AS [Net Sum], grosstotalj([jobs]![JobID],[jobs]![tax]) AS [Gross Sum], taxtotalj([jobs]![JobID],[jobs]![tax]) AS [Tax Total]
FROM Customers INNER JOIN Jobs ON Customers.CustomerID = Jobs.CustomerID
WHERE (((Jobs.status)="pending"))
ORDER BY Jobs.JobID DESC;