Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Create Database

 
   Database Help (Home) -> Visual Basic -> ADO RSS
Next:  Create a database when a user logs in for the fir..  
Author Message
dan

External


Since: Feb 16, 2005
Posts: 3



(Msg. 1) Posted: Wed Feb 16, 2005 9:55 pm
Post subject: Create Database
Archived from groups: microsoft>public>vb>database>ado (more info?)

Hi,

Looking for some ideas ? ADO / RDO ?
I need to develope a visual basic application that when a user launches the
application it checks to see if the datase for the user is created if the
user does not have a DATABASE it creates one then creates a table in the
Access Database.

 >> Stay informed about: Create Database 
Back to top
Login to vote
user1891

External


Since: Dec 09, 2004
Posts: 8



(Msg. 2) Posted: Thu Feb 17, 2005 2:40 am
Post subject: Re: Create Database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ADOX

"dan" <dan.DeleteThis@discussions.microsoft.com> schreef in bericht
news:395E5D07-5D93-4863-8A2A-D689082AFF18@microsoft.com...
 > Hi,
 >
 > Looking for some ideas ? ADO / RDO ?
 > I need to develope a visual basic application that when a user launches
 > the
 > application it checks to see if the datase for the user is created if the
 > user does not have a DATABASE it creates one then creates a table in the
 > Access Database.
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Create Database 
Back to top
Login to vote
Veign2

External


Since: Feb 04, 2004
Posts: 123



(Msg. 3) Posted: Thu Feb 17, 2005 11:40 am
Post subject: Re: Create Database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Create a JET Database with Table and Columns:
<a style='text-decoration: underline;' href="http://www.veign.com/vrc_codeview.asp?type=app&id=108" target="_blank">http://www.veign.com/vrc_codeview.asp?type=app&id=108</a>

Create a JET Database:
<a style='text-decoration: underline;' href="http://www.veign.com/vrc_codeview.asp?type=app&id=22" target="_blank">http://www.veign.com/vrc_codeview.asp?type=app&id=22</a>

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
<a style='text-decoration: underline;' href="http://www.veign.com/vrc_main.asp" target="_blank">http://www.veign.com/vrc_main.asp</a>
--

"dan" <dan.DeleteThis@discussions.microsoft.com> wrote in message
news:395E5D07-5D93-4863-8A2A-D689082AFF18@microsoft.com...
 > Hi,
 >
 > Looking for some ideas ? ADO / RDO ?
 > I need to develope a visual basic application that when a user launches
the
 > application it checks to see if the datase for the user is created if the
 > user does not have a DATABASE it creates one then creates a table in the
 > Access Database.
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Create Database 
Back to top
Login to vote
Veign2

External


Since: Feb 04, 2004
Posts: 123



(Msg. 4) Posted: Thu Feb 17, 2005 12:06 pm
Post subject: Re: Create Database [muliposted] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
<a style='text-decoration: underline;' href="http://www.veign.com/vrc_main.asp" target="_blank">http://www.veign.com/vrc_main.asp</a>
--

"dan" <dan DeleteThis @discussions.microsoft.com> wrote in message
news:395E5D07-5D93-4863-8A2A-D689082AFF18@microsoft.com...
 > Hi,
 >
 > Looking for some ideas ? ADO / RDO ?
 > I need to develope a visual basic application that when a user launches
the
 > application it checks to see if the datase for the user is created if the
 > user does not have a DATABASE it creates one then creates a table in the
 > Access Database.
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Create Database 
Back to top
Login to vote
Dennis

External


Since: Mar 13, 2005
Posts: 43



(Msg. 5) Posted: Sun Mar 13, 2005 10:19 am
Post subject: Re: Create Database [muliposted] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I used ADOX to create an Access DataBase as per your code. However, I want
to immediately delete the DataBase if it fails to do somethings. However,
the delete fails saying the file is in use by another process. This appears
to be because when ADOX created the DataBase, it won't relesae it. How can
I get ADOX catalog to release the file? Following is the code:

Dim catNewDB As New ADOX.Catalog
Dim fi As New IO.FileInfo(DBName)
Try
If fi.Exists Then
fi.Delete()
End If
catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data
Source=" & DBName)
catNewDB = Nothing
fi.Delete 'Gives error here saying file is in use by another
process
catch
end try

"Veign" wrote:

>
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
>
> "dan" <dan DeleteThis @discussions.microsoft.com> wrote in message
> news:395E5D07-5D93-4863-8A2A-D689082AFF18@microsoft.com...
> > Hi,
> >
> > Looking for some ideas ? ADO / RDO ?
> > I need to develope a visual basic application that when a user launches
> the
> > application it checks to see if the datase for the user is created if the
> > user does not have a DATABASE it creates one then creates a table in the
> > Access Database.
> >
> >
>
>
>
 >> Stay informed about: Create Database 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ADO Connection Access Database VB - I have been accessing a database on a local drive thru an ADO connection. The following is the code that I have been using. cnCejco.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Y:\Cejco.mdb;Persist Security Info=False" The problem is n...

DataEnvironment Connection to a remote SQL Server database - Hi, I am trying to connect one PC (win98) to SQL Server located on another PC (winxp1) but am failing with an error message: Test connection failed because of an error in initializing provider. [DBNETLIB][Connection Open(Connect()).]SQL Server does...

runtime error 3021 and user permissions - I have a VB6 application that uses ADO 2.7 to access an Access2000 database. I have found on Windows XP and 2000, that if the user is not part of the administrators group, they receive: "runtime error 3021. Either BOF or EOF is true, or the current ...

updatable ado-recordset - Hi, In the code below i have an updatable ado-recordset. However it is not working how i thought it would be. Maybe someone can help me out here? The global connection (Thanks to Brendan): Option Compare Database Option Explicit Public mconn As..

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all
   Database Help (Home) -> Visual Basic -> ADO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]