5 Replies - 1617 Views - Last Post: 18 November 2005 - 10:40 PM Rate Topic: -----

#1 Mind_Killer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 14-November 05

data base

Posted 14 November 2005 - 08:50 AM

I´m having a problam with my program!
I want to save and viu information in a data base alredy criated in acsses 2003!
how do I do that?
Please poust me:

Mind_Killer66@hotmail.com
Is This A Good Question/Topic? 0
  • +

Replies To: data base

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 247
  • View blog
  • Posts: 13,505
  • Joined: 12-July 02

Re: data base

Posted 14 November 2005 - 09:08 AM

Are you having problems accessing the database? Or working with the records contained therein?
Was This Post Helpful? 0
  • +
  • -

#3 Mind_Killer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 14-November 05

Re: data base

Posted 14 November 2005 - 09:12 AM

Amadeus, on 14 Nov, 2005 - 10:05 AM, said:

Are you having problems accessing the database? Or working with the records contained therein?

Both, I basacly don´t no the code!!!!
Was This Post Helpful? 0
  • +
  • -

#4 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 247
  • View blog
  • Posts: 13,505
  • Joined: 12-July 02

Re: data base

Posted 14 November 2005 - 10:06 AM

Is the database going to be on the same machine as the application, or is it going to be a remote database? If local, you can simply connect with an ADODB Connection object:
Dim dbConn As New ADODB.Connection
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DatabasePath 'set the database connection string
dbConn.Open connString 'open a connection to the database


From there, it really depends on what you'll be doing...if you're simply inserting, deleting, things of that nature, you can get away with a command object:
Dim cmd As New ADODB.Command 'object used to specify SQL command paramters, such as type (INSERT), and execution
Set cmd.ActiveConnection = dbConn 'activate the connection


You can then use the command object to execute statements.

If you're going to be looping through returned data, querying for specific items, then I'd suggest using an instance of the RecordSet object.
Was This Post Helpful? 0
  • +
  • -

#5 Xenon  Icon User is offline

  • Connection failed
  • member icon

Reputation: 8
  • View blog
  • Posts: 1,595
  • Joined: 12-September 05

Re: data base

Posted 16 November 2005 - 06:16 AM

i'd like you to check this out :)

and this too ADODB data access


hope this helps !

cheers

Xenon
Was This Post Helpful? 0
  • +
  • -

#6 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 175
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: data base

Posted 18 November 2005 - 10:40 PM

Use the Intrinsic Data Control.
That way the coding is reduced much more.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1