Adding indexes with VB code
If someone could help me out I would really appreciate it. I need to add 2 indexes to a table in an MS Access DB. I have to write a separate program that will check an (already existing) INI file to see if the indexes have already been added. If they haven't, I need to add the indexes, to the table, and edit the INI file so that it shows that the indexes have been added. One last question, since this program won't really need a GUI, is there a way I could create this program without using a form?
Re: Adding indexes with VB code
Quote:
Originally posted by PedroDePacos
... One last question, since this program won't really need a GUI, is there a way I could create this program without using a form?
yes, u can remove the default form 1, then add a module.
in the module create a sub called Main.
Make Sub Main u'r startup routine (in the project properties... see picture)
Add the code needed in Sub Main, and compile it.
any errors can be shown using a msg box.
http://www.vbforums.com/