Solved

ActiveX DLL / EXE Register

Posted on 2004-08-20
5
184 Views
Last Modified: 2010-05-02
Hi there. In VB, if I use an activeX DLL/ EXE, I click on project--> references to add a reference to the activeX. Is there a way of adding this reference by code?

Secondly, I need to determine (in code) the field data types in an access database sothat I can automate a process of transferring data from a mdb to a mysql database. I know how to get the field types, but I don't know how to determine if the field is an autoincrement field or not.

Thanks,

John
0
Comment
Question by:JSMCM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 25 total points
ID: 11850156
1) You could try to develop a AddIn for vb to do that...
However, not sure what exactly you are trying to achieve: if you want that "all" your projects have some DLL added to the references, go and edit the templates in the VB templates folder...

2) You have 2 options:
 * Check out ADOX objects, which give many information about the catalog structure
 * Check out ADODB.OpenSchema function, which also gives many information about the catalog structure

Cheers
0
 
LVL 3

Assisted Solution

by:sgayatri
sgayatri earned 25 total points
ID: 11858074
You can use references using createobject
see the example below

dim obj as object
set obj=createobject("Scripting.FileSystemObject")
obj.createfolder "c:\abcx"
set obj = nothing


What you do using project , references is early binding where you get all the properties, events methods seen when the object is instantiated. This way is late binding where in creation of object is deferred till requirement.

About your second question, absolutely no idea....

0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question