CharlieMay
Active member
I am developing an application that gets information from Quickbooks. I am using a 3rd party ODBC driver QODBC (QODBC.com)that allows me to link an access database to the Quickbooks datafile. Can someone tell me what I need to do to connect to this database and query information through the linked table?
So I have an access database (QBData.mdb) and that database contains linktables to the quickbook datafile. Inside Access I can create a query and pull results.
From VB.Net I'm connecting to the database as if it was a normal database containing actual data instead of links but I get the following OleDbException "No value given for one or more required parameters"
Here is the basics of what I have"
dim qbService as new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " &_
"Data Source=" & "D:\Applications\qbdata.mdb")
qbservice.open
sstmt = "SELECT * FROM Invoice Where RefNumber = '10167'"
dim qbDB as New Oledb.OleDbCommand("sstmt, qbservice)
dim readQB as Oledb.OleDbDataReader = qbDB.ExecuteReader
While readQB.Read
txID = readQB("txnID")
CustID = readQB("CustomerRef_ListID")
end while
qbservice.close
Textbox1.text = txID
Textbox2.Text = CustID
The exception appears on the dim readQB... line
Am I even using the proper connection string to connect to a database that only contains linktables and no actual stored data?
Any help is greatly appreciated
Charlie
So I have an access database (QBData.mdb) and that database contains linktables to the quickbook datafile. Inside Access I can create a query and pull results.
From VB.Net I'm connecting to the database as if it was a normal database containing actual data instead of links but I get the following OleDbException "No value given for one or more required parameters"
Here is the basics of what I have"
dim qbService as new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " &_
"Data Source=" & "D:\Applications\qbdata.mdb")
qbservice.open
sstmt = "SELECT * FROM Invoice Where RefNumber = '10167'"
dim qbDB as New Oledb.OleDbCommand("sstmt, qbservice)
dim readQB as Oledb.OleDbDataReader = qbDB.ExecuteReader
While readQB.Read
txID = readQB("txnID")
CustID = readQB("CustomerRef_ListID")
end while
qbservice.close
Textbox1.text = txID
Textbox2.Text = CustID
The exception appears on the dim readQB... line
Am I even using the proper connection string to connect to a database that only contains linktables and no actual stored data?
Any help is greatly appreciated
Charlie