connecting microsoft access database to visual basicconnect ms access database to visual basic an alter the contents of da
Page 1 of 1
10 Replies - 123686 Views - Last Post: 11 December 2009 - 07:48 PM
#9
Re: connecting microsoft access database to visual basic
Posted 20 February 2008 - 05:57 AM
#10
Re: connecting microsoft access database to visual basic
Posted 20 February 2008 - 06:06 AM
Post your code like this:
Thanks
#11
Re: connecting microsoft access database to visual basic
Posted 20 February 2008 - 12:36 PM
#12
Re: connecting microsoft access database to visual basic
Posted 19 March 2008 - 07:36 PM
vikas1111, on 20 Feb, 2008 - 05:57 AM, said:
if you have any problems in visual basic just email me @ {Removed}. i dont want to spearhead the public. thanks.
This post has been edited by PsychoCoder: 19 March 2008 - 07:57 PM
#13
Re: connecting microsoft access database to visual basic
Posted 28 April 2008 - 06:35 AM
#14
Re: connecting microsoft access database to visual basic
Posted 30 August 2008 - 11:24 AM
I got this connection string from connectionstrings.com, and tried to write some commands of my own. Btw, i'm trying to link to a database in the access 2003 format, with a table called classes.
Is this method for connecting correct? is there any method simpler than sql, as my project is very basic and it would help if i didnt have to write such complex programming. And plus, how do i navigate records? like in vb 6 it would be something like booksdat.recordset.next....
Dim myConnection As SqlConnection
Dim insert As SqlCommand
Dim delete As SqlCommand
myConnection = New SqlConnection(Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\vb08sbs\chap18\students.mdb;Persist Security Info=False;)
insert = New SqlCommand("INSERT INTO Classes (Class Name, Department, Prof, Section Number, Term, Units, Year, Location, Days/Times) values ('Test Class', 'Computer Science', 'Satra, Neil', 3, 'Fall', 98, 102, 'MWF 8:00')", myConnection)
delete = New SqlCommand("DELETE FROM Classes WHERE Class Name = 'Test Class'", myConnection)
#15
Re: connecting microsoft access database to visual basic
Posted 01 September 2008 - 04:51 PM
This post has been edited by thava: 01 September 2008 - 04:53 PM
#16
Re: connecting microsoft access database to visual basic
Posted 14 September 2009 - 01:13 AM
#17
Re: connecting microsoft access database to visual basic
Posted 15 September 2009 - 07:24 AM
vikas1111, on 20 Feb, 2008 - 04:57 AM, said:
you can get tons of help from the dreamincode tutorials or just google for it.
when i looked for tutorials, i google things like : vb6 ADO lesson free download : and followed the trail from there. That is how i found dreamincode and others. Try this link to get you started.
http://www.programmi...ls.com/vb6.aspx
cc
#18
Re: connecting microsoft access database to visual basic
Posted 07 December 2009 - 01:49 AM
vikas1111, on 20 Feb, 2008 - 04:57 AM, said:
it is the program model
in Genaral
Dim db as detabase
dim r as recordset
// in cammand /any cantrol
like add
r.addnew
r!twxt1.text
r.update
end
//
cannect the db in form lode event like
//
db= ad as database(c:\\.....)//it is an your path set
r= dbas record set (thats the name of r database path0
any
problem in this code
{email removed]
This post has been edited by BobRodes: 28 August 2011 - 12:49 PM
Reason for edit:: Removed email; against policy to publish private emails
#19
Re: connecting microsoft access database to visual basic
Posted 11 December 2009 - 07:48 PM
dbconn.CursorLocation = adUseClient
dbconn.Open
rsdata.Open "select*(file name of the table)", dbconn, adOpenStatic, adLockOptimistic
hope u can use this code..
|
|

New Topic/Question
Reply



MultiQuote





|