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

Run-time error 3079

Using Access 2013 I have the following queries:

qryVouchersNotRecieved:

Expand|Select|Wrap|Line Numbers
  1. SELECT dbo_FieldTrips.TripID AS VoucherNumber, dbo_FieldTrips.DepartureDate AS TripDate, dbo_FieldTrips.Status, dbo_FieldTrips.School AS Requestor, dbo_FieldTrips.Destination, dbo_FieldTrips.TripCategory, dbo_FieldTrips.TeamNumber, dbo_FieldTrips.ActivityTeamNumber
  2. FROM dbo_FieldTrips INNER JOIN qryVouchersNoReport ON dbo_FieldTrips.TripID = qryVouchersNoReport.TripID
  3. ORDER BY dbo_FieldTrips.DepartureDate;
  4.  
AND

qryVouchersNoReport:

Expand|Select|Wrap|Line Numbers
  1. SELECT dbo_FieldTrips.TripID, CStr([dbo_FieldTrips].[TripID]) AS TripNumber
  2. FROM dbo_FieldTrips
  3. WHERE (((CStr([dbo_FieldTrips].[TripID])) Not In (SELECT dbo_VW_VoucherReport.VoucherNumber FROM dbo_VW_VoucherReport )));
  4.  
Running the first query directly in Access produces the desired results. However, when I pass that query name in a DoCmd.OpenReport statement, although I fully qualify the DepartureDate field I get this error:

"The specified field dbo_FieldTrips.DepartureDate could refer to more than one table in the FROM clause of your SQL statement."
Mar 6 '17 #1
2 3336
here the problem is with your field names. Don't use the same field names as outputs from a query & you will not have ambiguous join errors.
Mar 7 '17 #2
Thank you for taking the time to reply, but I do not understand. If any field is named the same it is TripID. I aliased that name in one of the queries but got the same result.

Note also that the error message referenced the DepartureDate field, which exists in only one of the tables. Further, the error message itself contains the table name, showing that I did in fact qualify it.
Mar 7 '17 #3

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

Similar topics

5
by: Bob Bamberg | last post by:
Hello All, I have been trying without luck to get some information on debugging the Runtime Error R6025 - Pure Virtual Function Call. I am working in C++ and have only one class that is derived...
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
7
by: Yongsub Eric Shin | last post by:
Hi. I'm just a beginner in ASP.Net. I started writing codes and I keep on getting this Runtime Error page, where it says "Description: An application error occurred on the server. The current...
7
by: yuanlinjiang | last post by:
I am working on converting a win32 console application from VC6 to VC7. My version is Microsoft Development Environment 2003 version 7.1.3088. The code works fine on VC6. it is a console...
2
by: Aleksandar | last post by:
Hi, I need to convert set of Java classes exported from IBM Modeling environment to C# for implementation. When I invoke JCLA conversion from File->Open->Convert in Visual Studio 2005 it starts...
8
by: g_man | last post by:
I am trying trap Runtime error 3022 (duplicates) in the click event of a command button that closes the form. I have code in the Form_Error event that does a good job of providing a more meaningful...
7
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement...
3
by: Jim Armstrong | last post by:
Hello all - This is driving me crazy. I have a table called tblClients - very simple, has the following fields: taxID (PK) ClientName SalesName The main form of my application allows a...
2
by: blogman | last post by:
I am getting a Visual studio 2008 IDE application R6034 runtime error. This means that the IDE application is raising the error not the application I am building. This means that Microsoft did not...
1
by: abhijaiswal | last post by:
Hi All, I am working on a project where I used to views (view1 and view2). I set my first page as view2. I have around 10 Textboxes, 5 dropdown, 4 List view and 6 buttons. When I run my web...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...

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.