Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Runtime Error 3079
Roy Dey 
      
2 days ago
I have been using your Invoice program for a very long time. Today I went to open a customer and got the following error message. The specified field "FirstName" could refer to more than one table listed in the FROM clause of your SQL statement.
I don't have a clue how to fix this. What do I need to send you? Need help badly!
Kevin Robertson  @Reply  
          
2 days ago
There are more than one table with identical field names. Access needs to know which one to use.
You need to specify the Table name.

[TableName].[FieldName]
Roy Dey OP  @Reply  
      
2 days ago
Thanks for the quick reply. I looked at the SQL in OrderInvoiceQ and it appears to be OK. Or am I looking in the wrong place. Not an Access expert.
Alex Hedley  @Reply  
           
2 days ago
Can you share your SQL?
Roy Dey OP  @Reply  
      
34 hours ago
SELECT OrderT.*, [FirstName] & " " & [LastName] AS CustomerFN, OrderDetailQ.ProductName, OrderDetailQ.Quantity, OrderDetailQ.UnitPrice, OrderDetailQ.Notes, OrderDetailQ.ExtPrice, CustomerT.FirstName, CustomerT.LastName, CustomerT.Contact, CustomerT.Address, CustomerT.State, CustomerT.Zip, CustomerT.County, CustomerT.Phone, CustomerT.Email, OrderDetailQ.InvTotal, OrderDetailQ.PmtTotal
FROM (OrderT LEFT JOIN OrderDetailQ ON OrderT.OrderID = OrderDetailQ.OrderID) LEFT JOIN CustomerT ON OrderT.CustomerID = CustomerT.CustomerID
WHERE (((OrderT.OrderID)=[Forms]![OrderF]![OrderID]));
Kevin Robertson  @Reply  
          
33 hours ago
It is probably CustomerFN.
Try this:

[CustomerT].[FirstName] & " " & [CustomerT].[LastName] AS CustomerFN
Roy Dey OP  @Reply  
      
33 hours ago
I should edit the SQL to: SELECT [CustomerT] . [FirstName] & " " & [CustomerT] . [LastName] AS CustomerFN
Raymond Spornhauer  @Reply  
          
31 hours ago
I incorporated Kevin's suggestion and fixed the ().

Make a copy of your Query (for backup), then try pasting this into your SQL:

SELECT OrderT.*,
OrderDetailQ.ProductName,
OrderDetailQ.Quantity,
OrderDetailQ.UnitPrice,
OrderDetailQ.Notes,
OrderDetailQ.ExtPrice,
CustomerT.FirstName,
CustomerT.LastName,
[CustomerT].[FirstName] & " " & [CustomerT].[LastName] AS CustomerFN,
CustomerT.Contact,
CustomerT.Address,
CustomerT.State,
CustomerT.Zip,
CustomerT.County,
CustomerT.Phone,
CustomerT.Email,
OrderDetailQ.InvTotal,
OrderDetailQ.PmtTotal
FROM OrderT

LEFT JOIN OrderDetailQ ON OrderT.OrderID = OrderDetailQ.OrderID
LEFT JOIN CustomerT ON OrderT.CustomerID = CustomerT.CustomerID

WHERE OrderT.OrderID=[Forms]![OrderF]![OrderID];


I would also typically not use * in queries like this.  I would list out all the fields to prevent these kinds of errors.

-Raymond
Kevin Robertson  @Reply  
          
30 hours ago
Raymond With OrderT.*, Access knows the fields are from OrderT because the Table is specified.
Raymond Spornhauer  @Reply  
          
30 hours ago
Kevin

I understand that.  I'm just saying I've run into issues in the past using * once I start using Join Queries.  It will probably work in this case, but there are times it causes issues.  I don't understand why, but I've seen it multiple times.

-Raymond
Roy Dey OP  @Reply  
      
29 hours ago
OK, tried it, but now have a syntax error. Also, did some other stuff, but to no avail. What is confusing is I've been using this invoicing program for the last couple of years. No problems. Then this happened. I can access the job invoice, but when I click on the Print Review to see the report is when I get the error. All your help is greatly appreciated.
Roy Dey OP  @Reply  
      
9 hours ago
Error solved, Deleted the alias field CustomerFN from the orderinvoiceQ. Made the appropriate changes to the OrderInvoiceR.
SELECT OrderT.*, CustomerT.FirstName, CustomerT.LastName, CustomerT.Address, CustomerT.City, CustomerT.State, CustomerT.Zip, CustomerT.County, OrderDetailQ.ProductName, OrderDetailQ.Quantity, OrderDetailQ.UnitPrice, OrderDetailQ.Notes, OrderDetailQ.ExtPrice, CustomerT.Contact, CustomerT.Phone, CustomerT.Email, OrderDetailQ.InvTotal, OrderDetailQ.PmtTotal
FROM (OrderT LEFT JOIN CustomerT ON OrderT.CustomerID = CustomerT.CustomerID) LEFT JOIN OrderDetailQ ON OrderT.OrderID = OrderDetailQ.OrderID
WHERE (((OrderT.OrderID)=[Forms]![OrderF]![OrderID]));
Thanks to everyone.
Add a Reply Upload an Image
Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/19/2026 6:36:49 PM. PLT: 4s