473,385 Members | 1,640 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,385 software developers and data experts.

Syntaxerror in Designview -> How to correct wrong SQL-Syntax?

Hi,

Situation is:
Used an embedded query which was "optimized" be Access with Brackets
("()" -> "[].").

Now problem is:
I get the error "Syntaxerror in From part" in normal view as well as in
the design view. When I click ok -> Error and Window close.

How can I correct the error (=Seperate the two queries) when the design
window closes staight away once I click Ok on the error msg?

Thanks!
Frank

Nov 13 '05 #1
5 1602
Where is the SQL located again? on form load? or in the properties?

Nov 13 '05 #2
Designed the query in the regular query designer and edited later the
sql of the query.

There is no connection to VBA, macros, Forms or reports. I'm talking
just the plain query. Everytime I try to open it in any view it gives
me the error and on "OK" it closes the error window as well as the
query.

Beacher schrieb:
Where is the SQL located again? on form load? or in the properties?


Nov 13 '05 #3
If you can view the query in design mode, then the syntax should be ok
even after you've edited it manually in SQL mode.

Nov 13 '05 #4
the query designer will modify this:

select * from
(select * from some_table...)

like you noted, into something bizarro when you go back into Designer
mode.

If you change the alias, or add your own alias like so:

select vx.* from
(select vz.* from some_table...) as vx

then, the first time you go back to Design mode, it will work, but if you
go back into SQL Edit mode and back to Design mode, it won't like it, so
you have to take out the square brackets that it put back in around the
subquery when you changed back to Design mode last time.

"Adfra" <ad******@gmx.de> wrote in news:1118416892.675551.52330
@g14g2000cwa.googlegroups.com:
Hi,

Situation is:
Used an embedded query which was "optimized" be Access with Brackets
("()" -> "[].").

Now problem is:
I get the error "Syntaxerror in From part" in normal view as well as in
the design view. When I click ok -> Error and Window close.

How can I correct the error (=Seperate the two queries) when the design
window closes staight away once I click Ok on the error msg?

Thanks!
Frank


Nov 13 '05 #5
Thanks for your explanations, but I'm sorry to say that it does not
explain the solution to my problem.
Again, my problem is NOT how I have to correct the brackets.

THE PROBLEM IS: I can't modify my query anymore.

I can't access the query because it gets closed due to the Syntaxerror.
Do you have any idea how I could access the query anyway?

Nov 13 '05 #6

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

Similar topics

1
by: j vickroy | last post by:
Could someone help me understand the following Python 2.3 error message: SyntaxError: unqualified exec is not allowed in function 'load' it contains a nested function with free variables in...
3
by: Attila Szabo | last post by:
Hi, I wrote this sample piece of code: def main(): lambda x: 'ABC%s' % str(x) for k in range(2): exec('print %s' % k) main()
4
by: Jacobo Rodriguez Villar | last post by:
Hello, I have two problems with design view in VStudio 2003: First, if I close a solution with a form in design view, next time that I want start the vstudio, it hangs up before loading the...
2
by: thowle | last post by:
Is there any simple way I can create a Design View for a Table in VB.NET.. For an example of what I need is in Microsoft Access.. when you create a new table, is has the field name, data type,...
6
by: Fuzzyman | last post by:
What gives ? >>> a = >>> def f(): return a >>> f() >>> a.append(3) >>> f()
0
by: dejavue82 | last post by:
Is there any reason not to use it? An asp.net programmer told me that it's bad practice, why?
7
by: oscartheduck | last post by:
I have a small script for doing some ssh stuff for me. I could have written it as shell script, but wanted to improve my python skills some. RIght now, I'm not catching a syntax error as I'd...
12
by: Stefan Arentz | last post by:
Is there a better way to do the following? attributes = attributeNames = {} n = 1 for attribute in attributes: attributeNames = attribute n = n + 1
5
by: riverhorus | last post by:
I'm new to Python. I got this Python script from a friend. When I run it, I get an error message for line 7, "return None" saying "SyntaxError: 'return' outside function" Can someone explain what...
1
by: neridaj | last post by:
Hello, I'm going through the SOAP Web Services portion of Mark Pilgrim's tutorial and I'm getting this error when trying to build: python setup.py build Traceback (most recent call last):...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.