Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird Error

Status
Not open for further replies.

SteveCarrier

Programmer
Aug 6, 2002
34
CA
I have a module which changes the recordsource of different forms with new sql statements. It works for most of them, but for a couple I get a weird error when it tries to assign the new sql to the recordsource:

Run Time Error '2001'
You cancelled the previous operation.

Has anyone seen this before?

Thanks.

Steve Carrier
 
When you execute the "problem" record source queries do they return any records? If they don't, this may be causing your problem. If this is the case then you can write code to ignore the error.
 
Thanks Mr. KC for your prompt reply.

I actually found out that I mistakingly put quotes ('intSequence') around my integer in the sql queries. That had messed it right up!

Steve Carrier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top