Hi!!!
Couldn't fix this one for 2 hrs now, so your help is appreciated!!
I do fill a list field with a sql query working with functions, too. The query is initiated "on click".
The query:
This is how I initiate the query:
My problem is that once I have clicked the button, the query is executed everytime I scroll my mouse in the particular form. This causes error messages later on, so I only want to fill the list field once! Can somebody help me? Would be great!!!
Thanks, Frank
Couldn't fix this one for 2 hrs now, so your help is appreciated!!

I do fill a list field with a sql query working with functions, too. The query is initiated "on click".
The query:
Code:
SELECT quotes.QuoteID, quotes.QuoteDate AS [Quote Date], nettotal([quotes]![QuoteID]) AS [Net Sum], grosstotal([quotes]![QuoteID]) AS [Gross Sum], taxtotal([quotes]![QuoteID]) AS [Tax total], quotes.tax AS [Tax Rate], quotes.CompanyID, quotes.DeliveryDeadline, quotes.CustomerID
FROM quotes INNER JOIN customers ON quotes.CustomerID = customers.CustomerID
WHERE (((quotes.CustomerID)=[Form]![CustomerID]));
This is how I initiate the query:
Code:
Me!Liste31.Requery
My problem is that once I have clicked the button, the query is executed everytime I scroll my mouse in the particular form. This causes error messages later on, so I only want to fill the list field once! Can somebody help me? Would be great!!!
Thanks, Frank