I'am a new programmer and need to know what references through vb 6 Enterprise edition to access a Microsoft access data table and read a nd write to it.
Well you have many options.<br>
Easiest is not always the most flexible.<br>
But lets start with easy first.<br>
VB 5 & 6 have a "Data Form Wizard" <br>
It is not installed by default but it is easy to install.<br>
in VB design window click<br>
Add-ins then "Add-in Manager"<br>
look in the list for<br>
"VB6 Data Form Wizard"<br>
highlight it and click<br>
"Loaded/unloaded" check box (lower right corner)<br>
Also click "Load at Starup" if you want to use it everytime your in VB<br>
It will not be automatially put in every project so don't worry about that.<br>
NOW click OK<br>
If you click Add-ins again you will see a new option called "Data Form Wiazard"<br>
Click it<br>
It will step you though the process of connecting to any number of database's including Access.<br>
<br>
OK start with that.<br>
Come back if you have more issues with this.<br>
<br>
<br>
Igues I should have said I know about that one but it makes things slow. I have a access data table on the lan which I will use as storage for the program and it runs in access.
RAK<br>
Under project references you can use the Microsoft DAO 3.51 object library <br>
pk <p>PK Odendaal<br><a href=mailto: pko@mweb.co.za> pko@mweb.co.za</a><br><a href= > </a><br>
Well a faster one is using SQL<br>
Minimal SQL needs<br>
<br>
Dim db as database, rst as recordset, SQL as string<br>
Set db = OpenDatabase("\\SLMD\SYS\ACCESS\LEADTIME.MDB" <br>
SQL = "SELECT * FROM Orders WHERE OrderDate >= #1-1-95#;"<br>
Set rst = db.OpenRecordset(SQL)<br>
<br>
another method Not SQL<br>
<br>
Dim MyDB As Database, MyTable As Recordset<br>
Set MyDB = OpenDatabase("\\SLMD\SYS\ACCESS\LEADTIME.MDB"<br>
Set MyTable = MyDB.OpenRecordset("LEADTIME"<br>
MyTable.Index = "PrimaryKey"<br>
MyTable.Seek "=", Me![Project].text<br>
MyTable.Edit<br>
MyTable.fields("SYS" = Me![text1].text<br>
' update database<br>
MyTable.Update<br>
<br>
MyTable.Close<br>
MyDB.Close<br>
<br>
<br>
<br>
<br>
Dougp I have a question for you about the Barcode making.<br>
<br>
The other information about references helped me alot and the code help thank you people for the help. I just fond this website and like it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.