
Originally Posted by
kibotizer
Making MS ACCESS Database part of .EXE file in VB6... how?
unsa man na mga bai?... kinsa naay idea ug kamao?... murag embedding ACCESS Database to a VB6 program, MDB or MDE...
then how to retrieve data from it?...
yeah! bling bling men...abz'
This is easy.
Just create an ODBC connection for the MsAccess Database
Then create a either use RDO or ADO connection to point to the ODBC created.
Example in RDO:
Code:
Dim cnAccess As New rdoConnection
Dim rdoQry As New rdoQuery
Dim rdors As rdoResultset
Dim conn_string As String
Dim sql as String
con_string = "ODBC connection string here...."
cnAccess.CursorDriver = rdUseOdbc
cnAccess.Connect = conn_string
cnAccess .EstablishConnection
sql="SQL statement here...."
openRS rdoQry, rdors, sql
manipulate recordset rdors here....
.
.
.
rdors.Close
rdoQry.Close