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 
Sql statment error
Abraham Breuer 
     
6 years ago
Hi Richard!
I am trying to practice the lessons I learned so far,
When I made my query for sales tax it appears Error 3079
I do understand that it is because Istaxble is in both tables ProductT & OrderDetailT, but how do I specify in my IIF statement that it should work (IIF (IsTaxble;ProductPrice*0,17;0)??
I appreciate your reply
many thanks!
Richard Rost  @Reply  
          
6 years ago
Hi Abraham. Unlike humans which are pretty good at catching spelling errors, Access needs exact spelling and syntax. You need to double-check your spelling. You spelled "statement" wrong in the subject for this post (which I left so you'd see it) and you spelled "IsTaxable" wrong in your code. This is important. Also, the IIF function doesn't use semicolons at all. It should be:

IIF(IsTaxable, A, B)

So double-check all of your spelling. Don't be embarrassed. Spelling is the NUMBER ONE reason why people have code that doesn't work.
Abraham Breuer OP  @Reply  
     
6 years ago
I have in first place worked as you trained me by using normal commas, but unfortunately, it did not work, then when I downloaded from your web the database I looked in it and found that by the IIF function are actually semicolons instead of commas...
I use Microsoft 365 so maybe that differs...
Abraham Breuer OP  @Reply  
     
6 years ago
just googled now
In Europe, the Comma is used as a decimal separator, and therefore a Semicolon is used as a column separator
I think you should put on my name my country's flag...
Richard Rost  @Reply  
          
6 years ago
Yep. You're right. I didn't realize you were in Austria. That's another reason why I like the flags on peoples' accounts. I only did the top 15 or so (where my students are from). I'll get Austria added as soon as I can.

You're right. In a lot of Europe, the comma is the decimal separator, and the semicolon is the list separator. You can actually change these settings in Windows under Regional Settings in your Control Panel. I have a lot of European students who change just to stay compatible with US standards. In any case, let me see the complete SQL statement you have. Error 3079 usually comes up when you have an ambiguous field name in a query involving two or more tables.
Richard Rost  @Reply  
          
6 years ago
Abraham, your flag is now flying. Enjoy!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

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: 5/8/2026 10:58:12 PM. PLT: 0s