![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The have a table - CashFlow that has setGenFilter on ContractNo. I have a form with a table frame of CashFlow that has a formula using the StreetCode column on a form. I added another column named StreetSort that has the same data as StreetCode - however the code below does not sort the table Why??? cashTbl.attach("CashFlow.DB") sort cashTbl on "ContractNo", "StreetSort" endSort |
#3
| |||
| |||
|
|
The have a table - CashFlow that has setGenFilter on ContractNo. I have a form with a table frame of CashFlow that has a formula using the StreetCode column on a form. I added another column named StreetSort that has the same data as StreetCode - however the code below does not sort the table Why??? cashTbl.attach("CashFlow.DB") sort cashTbl on "ContractNo", "StreetSort" endSort |
#4
| |||
| |||
|
|
Jeanette a) You can only sort a table with no indexes that way. So does your table have an index or not? b) When table is used by your form, you can't sort it, because the table is in use. c) If you really ned to sort the data, you should use an index, and switchindex to the one you want to use to show the data. -- Bertil Isberg - CTECH Paradox buglist: online: http://hem.bredband.net/bertilisberg/ "Jeanette" <HarrisJR (AT) bwsc (DOT) org> skrev i meddelandet news:4547c10b$1 (AT) pnews (DOT) thedbcommunity.com... I have a table - CashFlow that has setGenFilter on ContractNo. I have a form with a table frame of CashFlow that has a formula using the StreetCode column on a form. I added another column named StreetSort that has the same data as StreetCode - however the code below does not sort the table Why??? cashTbl.attach("CashFlow.DB") sort cashTbl on "ContractNo", "StreetSort" endSort |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Is the form in edit mode? --------------------------------------------------------- Tony McGuire |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Well, if a record is locked you certainly won't be able to sort. ======================= HELP: "sort automatically places a full lock on the tables being sorted if the result is written to the same table. " ======================= Note: FULL LOCK. Have you tried testing for success (try/fail) and inspecting for a message? --------------------------------------------------------- Tony McGuire |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
The have a table - CashFlow that has setGenFilter on ContractNo. I have a form with a table frame of CashFlow that has a formula using the StreetCode column on a form. I added another column named StreetSort that has the same data as StreetCode - however the code below does not sort the table Why??? cashTbl.attach("CashFlow.DB") sort cashTbl on "ContractNo", "StreetSort" endSort |
![]() |
| Thread Tools | |
| Display Modes | |
| |