Alright, the current form I am working on is a pageframe with 3 pages. On the first page is a grid and 2 command buttons. The buttons allow you to add/edit records that are displayed in the grid.
On the second page are all of the labels and text boxes in the table that are disabled until the user clicks on the Edit button on either the first or second page. There is also a list of the options that are installed on the crrent record. The options are read into the list with an SQL statement from the vehopt table. When the user clicks the edit options button below the list, they are taken to the third page, the options page.
On the options page there are 2 lists and a command group with Add, Add All, Remove, Remove All and Save buttons. Currently, when the user clicks edit option the form reads through the list (FOR to lst.ListCount) and plugs each option currently installed into the OptionsInstalled list on the 3rd page, whose RowSourceType is 0. The other list is a list of all of the options that are read in from the OPMAST table and the RowSourceType is 6.
What I want to do is to disable all of the items in the OPMAST list that are already installed on the current record. I did a search and understand that I need to add a "\" character to the beginning of the row that I want disabled, however I can not seem to get this to function properly while reading the information in from the OPMAST table. Please let me know of any ideas you guys may have to help.
On the second page are all of the labels and text boxes in the table that are disabled until the user clicks on the Edit button on either the first or second page. There is also a list of the options that are installed on the crrent record. The options are read into the list with an SQL statement from the vehopt table. When the user clicks the edit options button below the list, they are taken to the third page, the options page.
On the options page there are 2 lists and a command group with Add, Add All, Remove, Remove All and Save buttons. Currently, when the user clicks edit option the form reads through the list (FOR to lst.ListCount) and plugs each option currently installed into the OptionsInstalled list on the 3rd page, whose RowSourceType is 0. The other list is a list of all of the options that are read in from the OPMAST table and the RowSourceType is 6.
What I want to do is to disable all of the items in the OPMAST list that are already installed on the current record. I did a search and understand that I need to add a "\" character to the beginning of the row that I want disabled, however I can not seem to get this to function properly while reading the information in from the OPMAST table. Please let me know of any ideas you guys may have to help.