ukjock Posted July 19, 2004 Posted July 19, 2004 Hi everyone I have a small problem with my database creation. I am trying to create a database in a direcotry as specified by the user, but I want to title the database myself. So I have the following code: Dim database As String database = TextBox1.Text & "\mydb.mdb" Dim cat As Catalog = New Catalog cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & (database) & "Jet OLEDB:Engine Type=5") cat = Nothing problem is that it names the database "mydb.mdbJet OLEDB". I can see how and why it is doing this but I can not rectify how to stop it. Any help appreciated. Thanks Chris Quote ----------------- It�s always funny until someone gets hurt� Then it become hilarious!
Administrators PlausiblyDamp Posted July 19, 2004 Administrators Posted July 19, 2004 Just guessing but shouldn't it be something like cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & (database) & ";Jet OLEDB:Engine Type=5") note the extra semi-colon after the filename. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ukjock Posted July 19, 2004 Author Posted July 19, 2004 Just guessing but shouldn't it be something like cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & (database) & ";Jet OLEDB:Engine Type=5") note the extra semi-colon after the filename. Darn it! Your right, I must have overlooked that little blighter. Thanks for your help c Quote ----------------- It�s always funny until someone gets hurt� Then it become hilarious!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.