Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET 2009 1

Status
Not open for further replies.

sanjay84

IS-IT--Management
Dec 15, 2008
6
I've searched the net many hours for code on how to create a new access database file (.accdb or .mdb) in VB 2008.

I've tried the method of creating a file and adding the .accdb or .mdb extension but it won't accept it because it hasn't the proper structure.

Anyone who has an idea?
 
Something like this?

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
something like that, I allready tried to insert that snippet it didn't work. haven't found a clear cause for it.

thanks for the suggestion
 
Hmm, worked fine for me. Did it error for you? If so what message did it return?

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
ok i'm experimenting with the visual basic 2008 express edition.

I copy paste the code and get an error here:

Dim cat As Catalog = New Catalog()

type catalog is not defined, I think it doesn't accept the imports ADOX statement
 
Have you set the COM reference to Microsoft ADO Ext. 2.7 for DDL and Security?

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Nope, I've just read it on a MSDN article

thanks and next time I'll read the f*cking manual !
 
No worries, glad you got it sorted [smile]

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top