473,722 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sage line50 database access

Anybody know syntax of sage line 50 query?

how can I write sage line50 database conidtion sql query?

when i write this syntax, get error msg of column not found.
'SELECT c.stock_cat_nam e, a.stock_code, c.description, a.date,
IIF(MID(a.type, 2,1)="I",SUM(a. quantity),0) AS iqty,
IIF(MID(a.type, 2,1)="O",SUM(a. quantity),0) AS oqty
FROM stock_tran AS a LEFT JOIN stock AS c ON c.stock_code=a. stock_code
WHERE a.date>=[from_date] And a.date<=[to_date]
GROUP BY c.stock_cat_nam e, a.stock_code, c.description, a.date,
MID(a.type,2,1)
ORDER BY c.stock_cat_nam e, a.stock_code, a.date, MID(a.type,2,1) '

rashesh

Jan 20 '07 #1
3 6406
What's a "sage line50 database"? What does it have to do with Microsoft
Access?

Larry Linson

"Rshah" <rs********@gma il.comwrote in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Anybody know syntax of sage line 50 query?

how can I write sage line50 database conidtion sql query?

when i write this syntax, get error msg of column not found.
'SELECT c.stock_cat_nam e, a.stock_code, c.description, a.date,
IIF(MID(a.type, 2,1)="I",SUM(a. quantity),0) AS iqty,
IIF(MID(a.type, 2,1)="O",SUM(a. quantity),0) AS oqty
FROM stock_tran AS a LEFT JOIN stock AS c ON c.stock_code=a. stock_code
WHERE a.date>=[from_date] And a.date<=[to_date]
GROUP BY c.stock_cat_nam e, a.stock_code, c.description, a.date,
MID(a.type,2,1)
ORDER BY c.stock_cat_nam e, a.stock_code, a.date, MID(a.type,2,1) '

rashesh

Jan 20 '07 #2
Baz
Sage Line50 is a technically garbage but very popular accounting package for
small businesses, at least it is here in the UK. It's a few years since I
had anything to do with this heap of junk, but it used to come with
unbelievably slow read-only ODBC drivers, so it is possible that the OP is
querying it from Access, although it would have helped if he'd made this
clear.

As to which column he has a problem with, given the lack of information he
has provided, that is of course anyone's guess.
"Larry Linson" <bo*****@localh ost.notwrote in message
news:D8jsh.420$ uL6.165@trnddc0 3...
What's a "sage line50 database"? What does it have to do with Microsoft
Access?

Larry Linson

"Rshah" <rs********@gma il.comwrote in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Anybody know syntax of sage line 50 query?

how can I write sage line50 database conidtion sql query?

when i write this syntax, get error msg of column not found.
'SELECT c.stock_cat_nam e, a.stock_code, c.description, a.date,
IIF(MID(a.type, 2,1)="I",SUM(a. quantity),0) AS iqty,
IIF(MID(a.type, 2,1)="O",SUM(a. quantity),0) AS oqty
FROM stock_tran AS a LEFT JOIN stock AS c ON c.stock_code=a. stock_code
WHERE a.date>=[from_date] And a.date<=[to_date]
GROUP BY c.stock_cat_nam e, a.stock_code, c.description, a.date,
MID(a.type,2,1)
ORDER BY c.stock_cat_nam e, a.stock_code, a.date, MID(a.type,2,1) '

rashesh


Jan 20 '07 #3
Rshah wrote:
Anybody know syntax of sage line 50 query?

how can I write sage line50 database conidtion sql query?

when i write this syntax, get error msg of column not found.
'SELECT c.stock_cat_nam e, a.stock_code, c.description, a.date,
IIF(MID(a.type, 2,1)="I",SUM(a. quantity),0) AS iqty,
IIF(MID(a.type, 2,1)="O",SUM(a. quantity),0) AS oqty
FROM stock_tran AS a LEFT JOIN stock AS c ON c.stock_code=a. stock_code
WHERE a.date>=[from_date] And a.date<=[to_date]
GROUP BY c.stock_cat_nam e, a.stock_code, c.description, a.date,
MID(a.type,2,1)
ORDER BY c.stock_cat_nam e, a.stock_code, a.date, MID(a.type,2,1) '

rashesh
Make a copy of this query. Using the copy...

Delete the Where line. Run it? Any error? If no error, then
wipe out a field at a time. Sooner or later the problem field will be
removed and the query will run.
Jan 20 '07 #4

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

Similar topics

0
1592
by: Phil | last post by:
My mission is to get some data out of a sage application, via a very complicated query, into a csv file. My approach, so far, has been 1) link access tables to the sage application 2) build some sub queries 3) build a big query that brings together all the little queries. 4) dump the data generated by the big query into a csv file.
1
5316
by: cheungs7 | last post by:
Hi all, Wondering whether you can anyone help me. We have Sage Payroll (and accounting/payroll software), which has a MS Access database where the data is stored. Now I want to access the data in this database but whenever I do (without using the Sage payroll client application) I get a permission problem. Now I have the correct username and password, and I tried importing it in a new Access database, but with no luck. Maybe I'm...
2
6938
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
1620
by: FOTL | last post by:
Hi people! Quick question. I am connecting to a SAGE Line50 database via Sage SDO in ASP.net. I can connect to the database but have problems creating a particular workspace... This is the message I get...
8
13065
by: cdo4 | last post by:
I currently have Sage MAS200 SQL (with eBusiness and full support) and looking to launch a consumer ecommerce site. I also have an old website (we took it offline to focus on distribution) written in ASP. The site is from 1998. We now want to launch a new site. I was thinking of running the whole consumer site on PHP/MySQL, but willing to consider ASP.NET. I have the following questions: 1) What is the best way to integrate the MAS200...
1
4286
by: Gurdeep Toor via AccessMonster.com | last post by:
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. ... '...
0
6374
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 have successfully managed to extract data from other SQL databases using ODBC connections with no errors. The php code I am using is:
2
3070
by: franc sutherland | last post by:
Hi, I am trying to build a database in Access 2003 which can connect to information in a SAGE system. Should I use ODBC, and if so, which driver is required? Is there another way of connecting? Which is best? Thanks, Franc.
2
1758
by: Beany | last post by:
I am creating a application vb.net and i want to pass/select information from this application into sage line50 v11. First of all i need to know what back end database that sage uses and is it possible for me to connect straight into the back end. I know that odbc allows me to read information from sage and also there is a sage data objects out there that allows you to do everything but it is to expensive Is there any way i can by...
0
8739
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9384
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9157
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.