Mar 2, 2004 #1 P p4p800 Member Joined Mar 2, 2004 Messages 10 how do u make an access database file and how do u make a text file write on two lines? Code: Dim writer As New System.IO.StreamWriter("C:\test.txt") writer.Write("test") writer.Write("test") writer.Flush() writer.Close()
how do u make an access database file and how do u make a text file write on two lines? Code: Dim writer As New System.IO.StreamWriter("C:\test.txt") writer.Write("test") writer.Write("test") writer.Flush() writer.Close()
Mar 2, 2004 #2 P p4p800 Member Joined Mar 2, 2004 Messages 10 and this does not work for two lines Code: Dim writer As New System.IO.StreamWriter("C:\test.txt") writer.Write("test") writer.Flush() writer.Write("test") writer.Flush() writer.Close()
and this does not work for two lines Code: Dim writer As New System.IO.StreamWriter("C:\test.txt") writer.Write("test") writer.Flush() writer.Write("test") writer.Flush() writer.Close()
Mar 2, 2004 #3 M mutant Well-known member Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA User Rank *Expert* To make an Access DB use Access... To write text on two lines use the WriteLine method instead of Write.
To make an Access DB use Access... To write text on two lines use the WriteLine method instead of Write.
Mar 2, 2004 #4 P p4p800 Member Joined Mar 2, 2004 Messages 10 no i mean how do u write a access file in vb .net
Mar 3, 2004 #5 M mutant Well-known member Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA User Rank *Expert* You mean accessing the database and inserting, updating, etc. records?
Mar 3, 2004 #7 M mutant Well-known member Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA User Rank *Expert* First you would need to create an Access database in Access then you can connect to the DB using classes inside System.Data.OleDb namespace.
First you would need to create an Access database in Access then you can connect to the DB using classes inside System.Data.OleDb namespace.
Mar 3, 2004 #8 P p4p800 Member Joined Mar 2, 2004 Messages 10 that is way over my head i just started in vb.net. i know just a little about vb 6
Mar 3, 2004 #9 M mutant Well-known member Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA User Rank *Expert* Databse access isnt very hard once you understand it. Look here for some tutorials: http://samples.gotdotnet.com/quicks...kstart/howto/doc/adoplus/adoplusoverview.aspx
Databse access isnt very hard once you understand it. Look here for some tutorials: http://samples.gotdotnet.com/quicks...kstart/howto/doc/adoplus/adoplusoverview.aspx