473,387 Members | 1,903 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,387 software developers and data experts.

how to detect erros on loading subform

I apologize if this is a faq. I searched for about 45 minutes and
didn't find a good answer but there are many matching posts.

I have a form which is based on a simple query to a linked table. The
data is set to no edits,additions,deletions,dataEntry. If the form is
open, but the linked table is opened seperately in design mode, than a
message appears saying "the table is already opened exclusively by
another user". Which makes perfect sense. I am able to detect the error
and respond accordingly.

But here is the problem. This form is also used as a subform on a tab
control page. In that case, Access doesn't throw an error, I can't
detect the error, and the subform is just blank.

How do I detect the error that the subform can't load?

Mar 17 '06 #1
2 1721
"Welie" <we******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
If the form is
open, but the linked table is opened seperately in design mode, than a
message appears saying "the table is already opened exclusively by
another user". Which makes perfect sense. I am able to detect the error
and respond accordingly.


I would say that, operationally, you should never encounter such a scenario.
As the developer, surely you would never have the need to generate it. Have
you split your database into front/back ends? Have you coded a method to
exclude all users whilst you work on the BE tables in design mode?

Just my 2p worth :-)

Keith.
www.keithwilby.com
Mar 17 '06 #2
>>If the form is
open, but the linked table is opened seperately in design mode, than a
message appears saying "the table is already opened exclusively by
another user". Which makes perfect sense. I am able to detect the error
and respond accordingly.
I would say that, operationally, you should never encounter such a scenario.
As the developer, surely you would never have the need to generate it. Have
you split your database into front/back ends? Have you coded a method to
exclude all users whilst you work on the BE tables in design mode?


I'm still a newbie for these kind of things. I didn't code anything to
exclude users. This is a split database. I would imagine there are also
other scenarios where a table could be locked and the recordset not
retreivable.

I did come up with a way to check, but its a bit of a hack. When the
user clicks on the tab I check a property of the subform recordset. If
it generates a 3008 error, I through up an error mesage.

Again I would imagine there could be other times when a table is locked
that a query can't execute. So this hasn't this got to be a more
generic scenario?

Mar 18 '06 #3

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

Similar topics

2
by: John Bailo | last post by:
I have a main form that can launch several subforms. Both the main form remains active when the subform is visible. I want to prevent the user from launching multiple copies of the subform. ...
1
by: Larry R Harrison Jr | last post by:
I have Access 97 and a database which fills in new values in a ****subform***. It plucks the values from the main form and plugs them into EXISTING RECORDS in the subform. What I need for it to do...
4
by: vulcaned | last post by:
Hi All, Hopefully I explain this well........ In Access97 I have a form which has a tab control on it, each tab has a sub-form which is bound to its appropriate table(I'll call them 'Detail'...
4
by: Corey | last post by:
I am having some real trouble getting a listbox rowsource to load properly. The listbox is actually on a subform. My main form has several command buttons that change the MASTER_SUB_FORM object...
5
by: Susan Bricker | last post by:
Hi. I have a Main form with a subform that has a subform. I have an 'Add Event' button on the Main Form that issues the following instruction: DoCmd.GoToRecord , , acNewRec If the record...
1
by: sasan3 | last post by:
I have a main form "topform" contaning "subform1" and "subform2" The goal is: I need to requery subform2 on CURRENT event of subform1, and I need to load subform2 contents based on settings on...
1
by: scott8000 | last post by:
hi all Access 2K/2003, Win XP Pro I need to be able to detect when a subform datasheet is currently displaying a vertical scrollbar. I.e if the subform datasheet is showing more records...
1
by: Ecohouse | last post by:
I have a main form with two subforms. The second subform has a combo box whose recordsource is set based on a field in the first subform. I tried putting some code in the first subform to do...
1
by: maffonso | last post by:
Hi people, My main form has a subform nested with another subform, both subs work as a subDatasheet. Indeed I keep the mainForm just to put some filters. Whenever I open de MainForm I have no...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.