473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IsQueryTable suddently don't work

Hi

I have used the isquerytable function mentioned elsewhere for a few of
my databases. And there has never been a problem - but suddently the
code stops at:

test = db.TableDefs(TName).Name

with the fault:runtime error 3265 - the element was not found in this
collection. - and it does that with all my databases using the function
- although they used to work perfectly.

Does anyone know what can be wrong?

TIA
Jens

Oct 24 '06 #1
2 1263

JensT wrote:
Hi

I have used the isquerytable function mentioned elsewhere for a few of
my databases. And there has never been a problem - but suddently the
code stops at:

test = db.TableDefs(TName).Name

with the fault:runtime error 3265 - the element was not found in this
collection. - and it does that with all my databases using the function
- although they used to work perfectly.

Does anyone know what can be wrong?

TIA
Jens
I suspect that your code relies on triggering a handled error to work.
Either from the VBA window menu or in code you've turned on the 'Break
on all errors' option. From the VBA window, click Tools, Options, then
click the General tab on the Options dialog. Under 'Error Trapping'
select 'Break on Unhandled Errors'.

Bruce

Oct 24 '06 #2

de***************@gmail.com skrev:
JensT wrote:
Hi

I have used the isquerytable function mentioned elsewhere for a few of
my databases. And there has never been a problem - but suddently the
code stops at:

test = db.TableDefs(TName).Name

with the fault:runtime error 3265 - the element was not found in this
collection. - and it does that with all my databases using the function
- although they used to work perfectly.

Does anyone know what can be wrong?

TIA
Jens

I suspect that your code relies on triggering a handled error to work.
Either from the VBA window menu or in code you've turned on the 'Break
on all errors' option. From the VBA window, click Tools, Options, then
click the General tab on the Options dialog. Under 'Error Trapping'
select 'Break on Unhandled Errors'.

Bruce
This was exactly the problem - thanks a lot Bruce

Oct 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
3
by: Douglas Buchanan | last post by:
Buttons don't work if form is opened on startup A2k If 'frmMain' is set to open by default at startup none of the buttons work. If 'frmMain' is opened from the database window then all the...
28
by: DFS | last post by:
I'm unfortunately about to change, or sever, a two-year relationship with a very slow-paying client. Most of the 15 invoices I've sent them arrive 6 to 8 weeks late, and usually only after...
4
by: Paul T. RONG | last post by:
Dear All, I add two new tables to the database and then the disable shift key codes don't work. These two new tables are actually created by two queries, and only these two are in the front end,...
2
by: Alpha | last post by:
Hi, I just added a new form with Crystl report viewer but one of my other form suddently starts giving me an error message when I rebuild the code. The error is complainig about the class name. ...
19
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
14
by: webEater | last post by:
I have a problem, it's not browser specific, and I don't get a solution. I have an (X)HTML document, I show you a part of it: .... <!--<div class="pad">--> <div id="eventImages"><img src=""...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
13
by: Wayne | last post by:
I have just experienced my first late paying client. By "late" I mean that the invoice is now almost 2 months overdue. I don't think that the client is maliciously withholding payment - rather...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.