Control missing from Form's controls collection

Control missing from Form's controls collection

Post by John Malon » Fri, 24 May 2002 05:57:20



ACC2K2/SS7

I have a simple unbound form that I added a comboBox to.  My reset
routine loops through all controls & resets all acTextbox &
acComboBox's to null after cmdSave_Click.  When the new ComboBox
failed to "reset" I inserted a debug.print ctl.name & found that it
(and it's label) are not included in the Form's control collection.
How can this be?  Could a certain library reference be missing?

I've tried:  Deleting & re-adding, compact & repair, Repair Access
thru SetUp.exe, All service packs, different ADODB versions.  I
created a new form & add the identical controls & it works so i'm
thinking this is a bizarre bug of sorts.

Thanks

 
 
 

Control missing from Form's controls collection

Post by John Malon » Sat, 25 May 2002 06:38:38


umm...nevermind.  After compact/repair & pulling all objects into a
new .adp on a new (full XP) system ... it works.  I had tried this at
home w/ Win2k Adv Server using various versioned dll's w/o luck.
Sometimes it's like pins in a voodoo doll ...

 
 
 

1. controls collection - property's

Hi all,

I am writing a validation routine that loops through the controls
collection,
tests for valid input and on invalid changes the textboxes property's to
advise the user of invalid entries.

Is there any way to associate a textbox's label with the text box. That is,
on invalid highlight the label rather than the text box.

Also is there a way to reset all color property's on a form without looping
through the controls collection a second time.

Any help would be greatly appreciated.

Jim Mac

2. Listview.Finditem

3. How to access a DB's form's control from w/i VB module

4. Remote update of FM Pro data

5. Binding a control to data control on a seperate form

6. MSSQL6.5 - How to get Individual Device I/O stats

7. Binding controls to a data control on a different form

8. Is cnews.corel.com down?

9. Controls bound to a data control on another form

10. Using Datalist controls w/o an ADODB control on a form

11. Using Access 97 replication ID's with VB5 data control and other bound controls

12. Controls Inheriting Other Control's Properties

13. Help: Using the datarepeater control with an ActiveX control containing an embedded datacombo control