PC Review


Reply
Thread Tools Rate Thread

MS Access SQL error

 
 
New Member
Join Date: Nov 2010
Posts: 1
 
      12th Nov 2010
Okay, I am trying to create a query that looks simlar to this




My sql statement currently is

SELECT [Inventory Worksheet].F1, [Inventory Worksheet].F2, [Inventory Worksheet].F10, [Inventory Worksheet].F3, [Copy Of Inventory Worksheet].F6, [Copy Of Inventory Worksheet].F7, [F7]-[F6]*[F3] AS Expr1
FROM [Copy Of Inventory Worksheet] INNER JOIN [Inventory Worksheet] ON [Copy Of Inventory Worksheet].F1 = [Inventory Worksheet].F1
ORDER BY [F7]-[F6]*[F3] DESC;


When I try to view the query in datasheet view I get hte following error msg " The specified field F7 could refer to more than one table listed in the FROM clause of your statement..

I am trying to edit my query such that it includes for RawMargins. The function would be F7-F6*F3, but when I use that, I get the error. Help would be lovely


Thanks in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL code works in Access SQL window but not in VBA SQL code EagleOne@discussions.microsoft.com Microsoft Access 61 5th Sep 2008 07:53 AM
Excel with SQL Query (*.sql) and SQL Server =?Utf-8?B?S29kZQ==?= Microsoft Excel Misc 2 8th May 2007 01:10 PM
Newbie: Access SQL and SQL and MS SQL =?Utf-8?B?TWlrZQ==?= Microsoft Access VBA Modules 4 18th Nov 2006 06:35 PM
Oledb VS Sql. Oledb works with Sql Server; Sql doesn't...why mrmagoo Microsoft VB .NET 5 29th Mar 2006 01:32 AM
Is Access SQL FROM Clause different from MS SQL Server SQL? David Perkins Microsoft Access Queries 1 20th Oct 2004 08:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:31 PM.