Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query"
From: Scott Crowley (scott_crowley_at_uk2.net)
Date: 11/18/04
- Next message: Sylvain Lafontaine: "Re: Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query""
- Previous message: Markus Wolff: "Connection Error 18452 - Login failed for user '(null)'"
- Next in thread: Sylvain Lafontaine: "Re: Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query""
- Reply: Sylvain Lafontaine: "Re: Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query""
- Reply: Robert: "RE: Access 2000 ADP - error when applying form filter - error message"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 18 Nov 2004 15:02:34 -0000
I have a form whose source data is a select query on three tables with inner
joins connecting them:
SELECT dbo.LOCATION.[Location code] AS LocationCode,
dbo.Clusters.ClusterNumber AS ClusterNumber,
dbo.Clusters.ClusterName AS ClusterName,
dbo.LOCATION.Cluster AS Cluster#,
dbo.ClusterStaffing.ITWorker AS PrimaryITWorker,
dbo.ClusterStaffing.WorkerStatus AS WorkerStatus,
dbo.ClusterStaffing.[Current] AS CurrentWorker,
dbo.LOCATION.Sitemapref, dbo.LOCATION.Address,
dbo.LOCATION.Phone
FROM dbo.LOCATION INNER JOIN
dbo.Clusters ON
dbo.LOCATION.Cluster = dbo.Clusters.ClusterNumber INNER JOIN
dbo.ClusterStaffing ON
dbo.Clusters.ClusterNumber = dbo.ClusterStaffing.ClusterNo
WHERE (dbo.ClusterStaffing.[Current] = 1) AND
(dbo.ClusterStaffing.WorkerStatus = 'Primary')
ORDER BY dbo.LOCATION.[Location code]
This is fine and the form loads and presents data as I expect. I can search
the form fine.
However, if I try to apply a form filter to one of the fields I get the
error message:
"The column prefix dbo.LOCATION does not match with a table name or alias
name used in the query"
and the filter is not applied.
Filter worked fine when the table source query only referenced one table.
Now I get this since adding more than one table.
I've searched for this error and seen it in relation to SQL queries than don
't run but not in this scenario.
Can anyone help?
Many thanks in advance.
Regards
Scott
- Next message: Sylvain Lafontaine: "Re: Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query""
- Previous message: Markus Wolff: "Connection Error 18452 - Login failed for user '(null)'"
- Next in thread: Sylvain Lafontaine: "Re: Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query""
- Reply: Sylvain Lafontaine: "Re: Access 2000 ADP - error when applying form filter - error message "The column prefix XXX does not match with a table name or alias name used in the query""
- Reply: Robert: "RE: Access 2000 ADP - error when applying form filter - error message"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|