473,785 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Save Error

19 New Member
Hi All,

Whenever i try to save a query, I get an error 'Inavlid Argument'. But I can execute the query and get the desired result. I want to use the query in another query to generate a file.

Pls Help....this is urgent.

Thanks in advance.
Jul 30 '07 #1
2 1461
JKing
1,206 Recognized Expert Top Contributor
Could you post the SQL for the query?
Jul 30 '07 #2
imnewtoaccess
19 New Member
Could you post the SQL for the query?
This is the query.

Expand|Select|Wrap|Line Numbers
  1. SELECT "S0400016" AS LINE_HEADER, Format(TK_TCK_SALE_DETAILS1.DATE,'mmddyyyy') & Format(TK_TCK_SALE_DETAILS1.TIME,'hhnn') AS PURCHASE_TIME, Mid(TK_TCK_SALE_DETAILS1.WORKCODE,9,2) & '.' & FORMAT(RIGHT(CSTR(TK_TCK_SALE_DETAILS1.TCK_NBR),3),'000') & '.' & Format(TK_TCK_SALE_DETAILS1.DATE,'mmddyy') AS TRANSACTION_CODE, TK_IMPORT_TICKET1.TK_SERIAL_EXTERNAL AS TICKET_BARCODE, TK_PROGRAM_DETAILS1.SHORT_NAME AS TICKET_CODE, Format((TK_TCK_SALE_DETAILS1.TRANS_PRICE-TK_TCK_SALE_DETAILS1.USH_REVENUE)*100,'00000') AS TICKET_REVENUE, Replace(Space(25),Space(1),'0') & '00011' & Replace(Space(10),Space(1),'0') & Space(35) & Replace(Space(20),Space(1),'0') AS HARD_CODED_PARK_ID, TK_CATEGORY.CAT_SUB_NAME, TK_PROGRAM_DETAILS1.PROGRAM_ID
  2. FROM ((TK_IMPORT_TICKET1 INNER JOIN TK_TCK_SALE_DETAILS1 ON TK_IMPORT_TICKET1.TK_SERIAL_INTERNAL = TK_TCK_SALE_DETAILS1.TK_SERIAL) INNER JOIN (TK_TICKET_TYPE INNER JOIN TK_CATEGORY ON TK_TICKET_TYPE.CAT_ID = TK_CATEGORY.CAT_ID) ON TK_TCK_SALE_DETAILS1.TCK_TYPE = TK_TICKET_TYPE.TCK_TYPE) INNER JOIN TK_PROGRAM_DETAILS1 ON TK_TICKET_TYPE.TCK_TYPE = TK_PROGRAM_DETAILS1.TCK_TYPE
  3. WHERE (((TK_CATEGORY.CAT_SUB_NAME)="ONLINE TICKET STORE") AND ((TK_PROGRAM_DETAILS1.PROGRAM_ID)="SCVP" Or (TK_PROGRAM_DETAILS1.PROGRAM_ID)="SCVPI") AND ((TK_TCK_SALE_DETAILS1.DATE) Between [Start_Purchase_Date] And [End_Purchase_Date]))
  4. ORDER BY TK_TCK_SALE_DETAILS1.DATE;
THanks.
Jul 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1336
by: Jonas Gorauskas | last post by:
I am having this one problem on an app I am writing where it shows the following error on some error trapping that I did: Query failed: Error Number: 1064 Description: You have an error in your SQL syntax near 'ON M.UserID = C.RowID JOIN SRUser AS CC ON M.CoUserID = CC.RowID WHERE M.RowID =' at line 1
3
3044
by: shreedhar | last post by:
If I try to delete a record from my table which is giving following error Warning: PostgreSQL query failed: ERROR: pg_atoi: zero-length string in /xxx/database.inc on line 73 What might be the problem. Regards, Sreedhar Bhaskararaju
1
2196
by: Dalan | last post by:
I'm experiencing a Query Syntax Error with an Access 97 Db. Actually, the query performs as expected when adding any new records or editing existing ones and even deleting records, EXCEPT when the last record on any related subform is deleted, then it generates a Runtime Error 3075 - Syntax error (missing operator) in query expression 'IDRef = '-- of course, because there are no more records left with the same IDRef number, or none...
0
1706
by: william_dudek | last post by:
I have a crystal report that works fine when run through Crystal, which I am triying to incorporate into a crystal report viewer. The report takes 1 parameter, which is either 0 or 1. If the paremeter is 1 then a filter is placed onto the data by the database server (Oracle PL/SQL procedure in a package), parameter is 0 then it doesn't use the filter. When I run this with the filter on the program works fine and the report is displayed,...
0
1472
by: raf_z | last post by:
Hi, I think i'm doing something simple, although i may be wrong. I was able to load a Crystal report file up until today, and even now, its only 1 report that's misbehaving. I'll confess that i didn't create the report, it was done by our Crystal guy with Crystal 9 (or 8), all i do is load it using .NET, which, like i said before, worked just fine. Here's the code: //i call this func from Page_Load passing in only the filename
1
4252
by: Frank Teunen | last post by:
Dear reader, I'm having a problem linking a dataset to a crystal report. I'm using next code. In between I explain my problem 'This code is to fill a dataset with the result of a stored procedure on an SQL data base Adapter_Sp_CoparnEmptyAfterDate.SelectCommand.Parameters("@Date").Value = DateTimePicker1.Value
2
8690
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the .rpt (on the file system) to the control's ".ReportSource" property. i do this because i like to move new versions of the reports w/o having to rebuild the site. then i pass in filter criteria to the control's ".SelectionFormula"
2
2025
by: Jason Huang | last post by:
Hi, In my computer, I have the built in Crystal Report for VS on my Visual Studio .Net 2003, but this version of Crystal Report doesn't meet my need. So I have installed a new Crystal Report XI on my VS2003 without removing the built in Crystal Report for VS. When I tried to open a report which is created in the CR11, the VS.Net gave me an error saying "query engine error". How do I fix the question so that I can open a CR11 report in...
6
1443
by: imnewtoaccess | last post by:
Hi, When I save a query in MS ACCESS 2000, I get the error 'Invalid Argument'. But I can execute the query very well and I get the desired result. But I want to save this query and use it another one to create a file. Pls Help !!!! Thanks In Advance.
1
2423
by: Zvonko Bi¹kup | last post by:
Hi, I am trying to execute rather complex query, and I got query processor error. I read the Microsoft support page and it said I should install SP4, and I did, but the error is still there. I am running MSDE with SP4 installed. Everything else works like a charm. Zvonko
0
9484
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
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10097
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
9957
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
8983
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...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5518
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2887
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.