Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Linking VB6 to MSAccess database?


Linking VB6 to MSAccess database?

Author
Message
BuzzL30
BuzzL30
Forum God
Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)Forum God (8.4K reputation)

Group: Forum Members
Posts: 31, Visits: 129
My question or topic as it may be is what elements are need to a VB6 project to work correctly with MSAccess db

I know I need at least 1 table, and Queries, and possibly Modules but do I need to create a report?

I know I need to add the fields that want to have in the VB6 project to the table or tables as it may be, but the rest I am not sure of I do know it will depend on what I want in my VB6 this can be answered by reading my other topic I have in here there is a zip file uploaded for any to try and solve this question.

 Hey looking for a puppy check out what we have www.kaycopets.com" target=_"blank" class="SmlLinks">www.kaycopets.com

Smartchap
Smartchap
Forum God
Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)Forum God (6.8K reputation)

Group: Forum Members
Posts: 23, Visits: 90
You must have one table in MSAccess. Now in VB this table can be linked through DAO or ADO. May use DataGrid for this.

Always Believe in GOD!
vb5prgrmr
vb5prgrmr
Forum God
Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)Forum God (40K reputation)

Group: Forum Members
Posts: 167, Visits: 786
You can access a *.MDB file with DAO, RDO, ADO, DAODC(Data1), ADODC(Data1), RDODC(ODBCData1), or DAO ODBC Direct. However, I suggest you use ADO and the data form wizard (search for it under add-ins>add-in manager). Use the wizard and choose the code option.

 

As for needing queries, yes you will need them but not contained by the access file. To access the data you will pass your sql string to the jet libraries via one of the data access methods mentioned above.

 

As for a report, that depends upon your requirements. VB comes with CR4.5 (Crystal Reports) but you will have to find it on the disk to install it.

 

 

 

Good Luck

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search