Solved

ActiveX DLL / EXE Register

Posted on 2004-08-20
5
167 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now