473,395 Members | 2,713 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,395 software developers and data experts.

select tablename.fieldname yet error 3079

This is my query:

SELECT DISTINCT relatie.relatieID
FROM Relatietype INNER JOIN relatie ON Relatietype.relatietypeID =
relatie.relatietypeID
WHERE (((Relatietype.omschrijving)='promotie') AND
((Relatietype.status)<>'weg'));

These are my tables (I left out some text fields)
Relatie(relatieID,naam,relatietypeID,opmerking,sta tus,username,userdate)
RelatieType(relatietypeID,omschrijving,flags,statu s,username,userdate)

Reference exists on relatietypeID.

Access now complains that the field [status] can refer to more than one
table in the FROM clause. All right--that's why I put in the table name
[relatietype], right? I completely fail to see what is wrong.

Bas Cost Budde
Holland

If you want to use my email, the q should be a t
Nov 13 '05 #1
4 4716
Hello Bas. Haven't seen you around the groups recently. Good to hear from
you again.

Your query statement looks fine to me too. It looks like Access is confused.
If this is Access 2000 or later, my money would be on Name AutoCorrect as
the cause of the confusion. There's well over a dozen bugs listed at:
Failures caused by Name Auto-Correct
at:
http://members.iinet.net.au/~allenbrowne/bug-03.html
and we are still discovering more.

So, uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
Then compact the database:
Tools | Database Utilities | Compact.

If that does not solve the problem, please post back again.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:cm*********@news2.solcon.nl...
This is my query:

SELECT DISTINCT relatie.relatieID
FROM Relatietype INNER JOIN relatie ON Relatietype.relatietypeID =
relatie.relatietypeID
WHERE (((Relatietype.omschrijving)='promotie') AND
((Relatietype.status)<>'weg'));

These are my tables (I left out some text fields)
Relatie(relatieID,naam,relatietypeID,opmerking,sta tus,username,userdate)
RelatieType(relatietypeID,omschrijving,flags,statu s,username,userdate)

Reference exists on relatietypeID.

Access now complains that the field [status] can refer to more than one
table in the FROM clause. All right--that's why I put in the table name
[relatietype], right? I completely fail to see what is wrong.

Bas Cost Budde
Holland

If you want to use my email, the q should be a t

Nov 13 '05 #2
Allen Browne wrote:
Hello Bas. Haven't seen you around the groups recently. Good to hear from
you again.

Your query statement looks fine to me too. It looks like Access is confused.
If this is Access 2000 or later, my money would be on Name AutoCorrect


It's 97. I was wondering wether I included enough information :-)

There IS AutoCorrect in my Tools menu, and that DOES solve the problem.
Not that I understand how or why...

"My car won't shift to 5th gear"
"Have you got a yellow suitcase in the back?"
"Why, yes."
"Try moving it to the left side of the compartiment"

....
Nov 13 '05 #3
Bas Cost Budde <b.*********@heuvelqop.nl> wrote in
news:cm**********@news2.solcon.nl:
Allen Browne wrote:
Hello Bas. Haven't seen you around the groups recently. Good to
hear from you again.

Your query statement looks fine to me too. It looks like Access
is confused. If this is Access 2000 or later, my money would be
on Name AutoCorrect


It's 97. I was wondering wether I included enough information :-)

There IS AutoCorrect in my Tools menu, and that DOES solve the
problem. Not that I understand how or why...

"My car won't shift to 5th gear"
"Have you got a yellow suitcase in the back?"
"Why, yes."
"Try moving it to the left side of the compartiment"


My guess is that there was some other saved property referring to
[status], like a sort order or filter, that doesn't show up in SQL
view. My bet is that if you'd cut and pasted the raw SQL into a new
query it would have worked.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #4
David W. Fenton wrote:
My guess is that there was some other saved property referring to
[status], like a sort order or filter, that doesn't show up in SQL
view. My bet is that if you'd cut and pasted the raw SQL into a new
query it would have worked.


Strong suspicion! I have indeed noticed that this causes problems now
and then.

Here, though, I have a query that I just created using CreateQuerydef,
and I can't find any property like that.

Copying and pasteing works. I use the query in an automated process,
though, so this is not a ready solution.

Please note that unchecking AutoCorrect worked, but only initially. I
seem to have changed something. Next time the query was created, it got
me the same error.
Nov 13 '05 #5

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

Similar topics

1
by: e_AK_05 | last post by:
I have a question and I can't figure out how to do it. I have a select statment : SELECT table1.* AS table1.*, table2.* AS table2.* FROM table1, table2 WHERE 1 this does not work...for me at...
4
by: Larry R | last post by:
I am trying to use XPath (XSLT 1.0), EXSLT 1.1 (.Net) to select the nodelist consisting of the 'top n' nodes. THe counter is the count of item/value. Using a traditional for-each logic, the...
1
by: Aaron | last post by:
I need a query that can return wildcard matches if there's no exact match. There's how the process works. 1. Input = "my email address is kfjsk@fsdf.com" 2. Look for exact match. 3. Look for...
3
by: Shelby Cain | last post by:
The select statements return different data for most_commons_vals depending on whether n_distinct is included in the select clause or not. I only seem to get the behavior below against int8...
4
by: T.M. | last post by:
What is the correct syntax for querying the first 20 characters of a memo field? I'm trying to SELECT CAST (varchar(20) fieldname) as newfieldname and i get a bunch of errors Can someone...
3
by: JBurgett | last post by:
How can I place the results of a dynamically generated select statement into a (#) temp table? This has me stumped, any help would be greatly appreciated. (The names used in the following...
36
by: aaronkmar | last post by:
Hello Bytes, I've been a long time lurker, there so much information here I always find my answers with ease. Until today... I'm hoping someone can exert a little brain power for me. I have...
2
by: djnokturnal | last post by:
Hey guys / gals, First time posting and of course I am sure it is something that has been answered 100 times but for some reason I just cant find the answer :) First off here is the structure...
2
by: wizardry | last post by:
Hello - I'm recently a newbie to mysql, but have experiance in oracle, mssql, access, etc... Here is my problem, i've created the table needed to test the audit procedures. the data element...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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,...

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.