Re: Runtime error 2001
- From: ThriftyFinanceGirl <ThriftyFinanceGirl@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Jul 2009 09:04:01 -0700
Well, I moved the piece that is collecting the taxtype data to the front of
the Where clause (right after the State) so that I could see as it was
running that the value was being collected properly.
It does show correct State=GA, TaxType = 16, City = College Park
Now, I can get the query to run (via an Access query) with these criterion
however I cannot seem to write the query via SQL and get it to run. My SQL
is not the absolute best it could be but I do know how to write it, yet I
can't get the syntax correct to test it. I'm at my wits end, as not only do
I have to use this form to filter, but then I need to be able to use the
generated SQL statement to create an update query and append query as well!
"JimBurke via AccessMonster.com" wrote:
I still think it's something in the SQL. Could it be something in the WHERE.
clause? This could explain why it worked one time and not another. Depending
on the conditions that were true when the code was executed. you'll get a
different WHERE clause. If you know the exact conditions that were true when
you got the error, try executing that SQL (open a recordset with it or
execute it via DoCmd) and see if you get some sort of SQL-related error. If
you can execute that exact same SQL successfully then it's something else.
ThriftyFinanceGirl wrote:
Yes the join is actually correct, the name of that one field "TaxName" is a
holdover from naming by a previous worker. However they are both number
fields and the join is correct. Also, I tried to take out that quote as you
suggested, and I got syntax error until I put it back....
It looks like right before you append your WHERE clause you concatenate a[quoted text clipped - 50 lines]
single quote onto your SELECT (that's what it looks like anyway, hard to tell
Me.qryWorkWithTax_subform.Form.Requery
--
Jim Burke
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200907/1
- References:
- Runtime error 2001
- From: ThriftyFinanceGirl
- Re: Runtime error 2001
- From: JimBurke via AccessMonster.com
- Re: Runtime error 2001
- From: ThriftyFinanceGirl
- Re: Runtime error 2001
- From: JimBurke via AccessMonster.com
- Runtime error 2001
- Prev by Date: Re: How do I use a combo box to input data into two text boxes on
- Next by Date: Re: Ms Access Error
- Previous by thread: Re: Runtime error 2001
- Next by thread: Re: Runtime error 2001
- Index(es):
Relevant Pages
|
Loading