473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Updating a Linked table (Linked to SAGE line 50 v 11) using ODBC & VB.NET form

Hi Folks,
I am building an application in VB.NET... It connects to 2 databases MS SQL
SERVER 2005 and MS ACCESS 2003 .. It works all fine with SQL but It only
reads the record from the ACCESS table which is linked with SAGE ACCOUNTING
SOFTWARE V 11... Now When i Update or add record to the ACCESS linked table
then i got the Error..... INVALID KEYWORD SPECIFICATION... My Code looks like.
...

' ----------------------------------------------------------------------------
-------------------------------------------------------------------

Dim connectiontring As String = "Provider=Microsoft.Jet.OLEDB.4.
0;DSN=SageLine50v11;Driver={Sage Line 50v11}
;Server=SHAYK;Databse=Line50Link;uid=manager;pwd=; "

conSage = New OdbcConnection(connectiontring)

conSage.Open()

str = "Insert into SALES_LEDGER (NAME, ACCOUNT_REF, WEB_ADDRESS) values ("
_
& "'" & txtCustAcName.Text & "'," _
& "'" & txtCustAcNo.Text & "'," _

& "'" & txtCustWeb.Text & "');"

cmdSageAddSL = New OdbcCommand(str, conSage)

Dim returnValue As Integer

returnValue = cmdSageAddSL.ExecuteNonQuery()

' ----------------------------------------------------------------------------
-------------------------------------------------------------------

The error is -->

INVALID KEYWORD SPECIFICATION

On the Following line -->

returnValue = cmdSageAddSL.ExecuteNonQuery()

Can anybody Plz Help.... Or Is there any other method i should use for SAGE...
????

Thanks

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200704/1

Apr 13 '07 #1
1 4231
"Gurdeep Toor via AccessMonster.com" <u33223@uwewrote in message
news:70a3b1d43d4ec@uwe...
Hi Folks,
I am building an application in VB.NET... It connects to 2 databases MS
SQL
SERVER 2005 and MS ACCESS 2003 .. It works all fine with SQL but It only
reads the record from the ACCESS table which is linked with SAGE
ACCOUNTING
SOFTWARE V 11...
The Sage Accounts ODBC driver is read only. You need to look into Sage Data
Objects (SDO) for an API which allows writing to the accounts files. Not for
the faint hearted. Also I believe you need to register with Sage as a
developer in order to obtain the necessary type library.
Apr 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Annette Massie | last post by:
I have a database with a linked table within it. I have a query form that opens and allows the user to select criteria and then the form is filled with data found from the linked table. At...
3
by: Michael Plant | last post by:
Hello one and all. I have a stored table in my database and the form I'm using is based on a query that draws data from my stored table and a linked table. The linked table is a *.txt file. ...
0
by: crypto_solid via AccessMonster.com | last post by:
I have been using a SQL database with a VB5 frontend for about 5 years. Works well. Unfortunately I don't have access to the source code. I was tasked with implementing a "job entry" application...
2
by: kj | last post by:
Hi people, newcommer here, i know a little ms programming but am new to sage, Is it possible to connect to sage line 50 with ms access? TIA Keith
1
by: Seemaraj | last post by:
I have problem in updating my table in VB.net using oledbconnection.The table is created in MSAccess, on an button click event i add the records in the field for the first time,later i want to update...
0
by: marc.holt | last post by:
Please help! I am attempting to extract data from a Sage Line 50 database ( .dta extention) via an ODBC connection. Included in the application install of Sage Line 50, is an ODBC driver. I...
1
by: GlennMBella2 | last post by:
this is probably basic, however I ahve a form with number of buttons and upon pressing certain buttons as part of hte buttons press function, i would like to update a table (communications) with...
0
by: BodiceaOverall | last post by:
Hello I am trying to connect to a SAGE database from MS Access 2000 using SAGELINE 100 ODBC Driver. When I use one schema (not created by me) I get the full table names yet in another (not...
5
by: sphinney | last post by:
I have data in a few external Access tables that I want to link to my Access 2007 database. Depending on situation (and permissions of the person using the database) I want to dynamically link to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.