Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2005

Tip: Looking for answers? Try searching our database.

Error Msg stLinkCriteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sash - 30 Mar 2005 21:23 GMT
I have a form ACCT where the user enters and account number and clicks  
button that has code to 1) verify if information is in table A and 2) Open
the detailed form using link criteria to open for only that ACCT#.  It was
working until I added a subquery to the query that drives the Detailed form.  
I'm now getting an error

"The specified field acct could refer to more than one table listed in the
from clause of your SQL statement"

I can however run the query that drives the detailed form.  I know this one
is hard to understand without seeing.  Just hoped someone might read and be
able to give me some direction.  My deadline is Friday and when I think I've
got it....I hit another wall.  
Graham Mandeno - 30 Mar 2005 23:02 GMT
Hi Sash

You must have included the ACCT field from both tables in your query.
Either delete one of them, or qualify the field by adding the table name to
the criteria string:

stlinkCriteria = "[my table].[ACCT]=" & something

Signature

Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

>I have a form ACCT where the user enters and account number and clicks
> button that has code to 1) verify if information is in table A and 2) Open
[quoted text clipped - 13 lines]
> I've
> got it....I hit another wall.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.