Error 458: Variable uses an Automation type not supported in Visual Basic 
Author Message
 Error 458: Variable uses an Automation type not supported in Visual Basic

I'm developing a db appliciation using ADO to connect to MySQL db.
I've been having trouble binding my VB controls to an ADO recordset
object, so instead of using bound controls, I'm manually populating
the controls and checking them on update. Here is an example of how I
update a record:

Private Function UpdateChannel() As Boolean

  On Error GoTo Err_UpdateChannel

  Dim tb As TextBox
  Dim fd As Field
  Dim rs As Recordset

  Set rs = MyObjects.CurrentChannel
  For Each tb In txtChn
    Set fd = rs(tb.Tag)
    If tb <> fd Then fd = tb
  Next
  rs.Update

  UpdateChannel = True

Exit_UpdateChannel:
  Set rs = Nothing
  Set fd = Nothing
  Set tb = Nothing
  Exit Function

Err_UpdateChannel:
  Err.Source = "Main.UpdateChannel"
  Call ErrHandler
  UpdateChannel = False
  Resume Exit_UpdateChannel

End Function

This code works perfectly when I update one record type, but raises
the error described in the subject of this message for a different
record type, and I can't figure out why. I've tried using the full
descriptors, i.e. tb.Text and fd.Value, but that doesn't help.

Any help on this would be greatly appreciated!

Brendan



Thu, 11 Mar 2004 20:59:34 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Error 458 Automation uses a variable type not defined in Visual Basic

2. Error when creating dll: variable uses an automation type not supported in visual basic

3. ADODB Error: Variable uses an Automation type not supported in Visual Basic

4. Variable uses an Automation type not supported in Visual Basic

5. Variable uses Automation Type not supported in Visual Basic

6. variable uses an automation type not supported in visual basic

7. Variable uses Automation type not supported in Visual Basic

8. variable uses an automation type not supported in visual basic

9. variable uses an automation type not supported in visual basic

10. Variable uses an Automation type not supported in Visual Basic

11. ErrMsg: Variable uses an Automation type not supported in Visual Basic

12. Variable uses an Automation type not supported in Visual Basic

 

 
Powered by phpBB® Forum Software