Ok so I have an array of comboboxes set to DropDown List, so nobody can enter other data. Now I have cmd button to clear the form of all data. Since you can't write/clear the data in DropDown List style, I am switching the style of each to DropDown Combo first then clearing the data and returning the style back to DropDown List. Here's the code:
VB Code:
For i = 0 To 8 Set cboFlash(i).Style = 0 Next For i = 0 To 8 cboFlash(i).Text = "" Next For i = 0 To 8 Set cboFlash(i).Style = 2 Next
Now I have two errors:
1. Compile Error: Invalid use of property - in regards to the .Style when I use the Set command.
2. Compile Error: Can't assign to read-only property - when i remove Set command.
Any suggestions?




Reply With Quote