Solved

ActiveX DLL / EXE Register

Posted on 2004-08-20
5
170 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
5 Comments
 
LVL 142

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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