G
Gazza
I have a search form (form1) that is used to select a customer from a list
which is generated from a query and has a sequence column but I can’t seem to
get the sequence to re-sequence itself when it is displayed.
Basically on the form the user types part of the accountcode presses the
enter key and a listbox displays the list of customers that match. The
problem is that when the accountcode is entered it might be no.1, no.3 and
no.6 and that is how it is displayed but I want it to display no.1, no.2 and
no.3.
I have a sql line in the sequence field of the query as follows:-
SELECT (Select Count(1) FROM tblcustomers A
WHERE A.AccountCode <=tblcustomers.accountcode) AS Sequence,
TblCustomers.Accountcode, TblCustomers.Address1, TblCustomers.CustomerName
FROM TblCustomers
ORDER BY TblCustomers.Accountcode;
I can’t seem to figure out how to get the sequence column to re-sequence
itself when the account code is entered.
Any help would be much appreciated
Thanks
Gareth
which is generated from a query and has a sequence column but I can’t seem to
get the sequence to re-sequence itself when it is displayed.
Basically on the form the user types part of the accountcode presses the
enter key and a listbox displays the list of customers that match. The
problem is that when the accountcode is entered it might be no.1, no.3 and
no.6 and that is how it is displayed but I want it to display no.1, no.2 and
no.3.
I have a sql line in the sequence field of the query as follows:-
SELECT (Select Count(1) FROM tblcustomers A
WHERE A.AccountCode <=tblcustomers.accountcode) AS Sequence,
TblCustomers.Accountcode, TblCustomers.Address1, TblCustomers.CustomerName
FROM TblCustomers
ORDER BY TblCustomers.Accountcode;
I can’t seem to figure out how to get the sequence column to re-sequence
itself when the account code is entered.
Any help would be much appreciated
Thanks
Gareth