Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / January 2007

Tip: Looking for answers? Try searching our database.

sage line50 database access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rshah - 20 Jan 2007 05:24 GMT
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_name, 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_name, a.stock_code, c.description, a.date,
MID(a.type,2,1)
ORDER BY c.stock_cat_name, a.stock_code, a.date, MID(a.type,2,1)'

rashesh
Larry Linson - 20 Jan 2007 07:02 GMT
What's a "sage line50 database"? What does it have to do with Microsoft
Access?

Larry Linson

> Anybody know syntax of sage line 50 query?
>
[quoted text clipped - 11 lines]
>
> rashesh
Baz - 20 Jan 2007 11:36 GMT
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.

> What's a "sage line50 database"? What does it have to do with Microsoft
> Access?
[quoted text clipped - 16 lines]
> >
> > rashesh
salad - 20 Jan 2007 18:01 GMT
> Anybody know syntax of sage line 50 query?
>
[quoted text clipped - 11 lines]
>
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.