Error Msg stLinkCriteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

stLinkCriteria 3
Open Forum Multiple Criteria 3
stLinkCriteria 2
stLinkCriteria syntax help 2
Auto Number Lookup 1
stLinkCriteria Help 2
How to do this? 3
stLinkCriteria Statement with multiple criteria 4

Back
Top