I'm a total n00b to VB, though I don't think it'll be too hard to learn. What I'm wondering about, though, is how I will connect to an ODBC database for read access with it. I'm probably also going to need to connect to an Access db for read and write access, which I am also spectacularly n00bish on. I am creating/administering the Access db right now, but I'd like to write a VB front end so that I don't have to install Access on every machine in the office.Basically, I'm hoping someone here can point me to some good resources, free or otherwise, that will help me learn what I need to learn or at least serve as a good reference or starting point for my questions. I'll be working w/ VB 6.0, btw.Thx in advance
5/24/2006 5:01:59 PM
Sendkeys ALT+F4
5/24/2006 5:14:50 PM
5/24/2006 6:24:24 PM
Use ActiveX Data Objects (ADODB). Really easy. Pretty much what you need is an:ADODB.Connection - an object that manages your database connectionADODB.Recordset - your query results
Dim Conn as ADODB.RecordsetDim Rset as ADODB.RecordsetSet Conn = New ADODB.RecordsetConn.Open 'use appropriate conection string and suchSet Rset = Conn.Execute("SQL QUERY HERE")Rset.MoveFirstWhile Not Rset.EOF 'do something with your record Rset.MoveNextWendConn.CloseSet Conn = NothingSet Rset = Nothing
5/24/2006 9:29:08 PM
1.) Get VisualStudio 2005 Express C# 2.) Forget about VB63.) Pick up a ADO.NET book4.) Migrate database to a real RDMBS5.) ...6.) Profit
5/25/2006 8:47:22 AM