473,471 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Create 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 1451
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
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...
3
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...
1
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...
0
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...
0
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...
1
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...
2
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...
2
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...
6
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...
1
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. ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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...
0
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...
0
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,...
1
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...
0
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...
0
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...

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.