Discussion Locked

DLL will not register

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have written and packaged a Visual Basic App. When I install it on Windows NT, I get an error message that MSDATOBJ.DLL will not register. I cannot even register it manually with regsvr32. Then when I run my app, I get a run time error everytime the event recordset.addnew is called. I'm sure this error relates to the dll. Any ideas? Thanks.

3 replies

by xxx123

According to Microsoft's MSDN (see KB article Q190212) MSDATAOBJ.DLL is a VB 6 Data Object Wizard - - that is, an add-in for the Visual Basic IDE. I'm not sure why you've got this in your distribution package at all - - it should only be used on systems running the VB IDE, not VB apps. I would not expect it to install properly if VB was not installed on the machine.

An error on recordset.addnew would point to problems in how you created your database connection (you defined it as read-only) or a problem with your driver version (ADO, ODBC, whatever you're using) or a problem with your database permissions (as in, you don't have permissions to "Create" rows in a table.)

This discussion is closed to new replies.