Solved

ActiveX DLL / EXE Register

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

726 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