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

A2003 MIssing Form

Along the lines of my last post, entitled "What Should I Close" the
memory error I got when I was operating my mdb seems to have spawned
something else.

The pop up form, which I presume is the cause of the trouble after
opening and closing it so many times, will no longer open.

It cannot be opened in design view.

When I try to import it into a new database, it doesn't come and I get
table created called "Name AutoCorrect Save Failures" (I don't have
autocorrect on) tells me the failure reason is "Could not open the object"

However, when I go into the original project, I can open the module for
this form.

What on earth have I done?
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #1
7 3137
Well, I've never seen a table called "Name AutoCorrect Save Failures", but
there are more than a dozen known problems with the Name AutoCorrect feature
in Access. Details in:
Failures caused by Name Auto-Correct
at:
http://members.iinet.net.au/~allenbrowne/bug-03.html

You should be able to recover this database by creating a new one, getting
rid of Name AutoCorrect, and then importing everything. Follow the steps for
the first symptom in:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

You may well find that the corruption was the cause for the memory errors
you were experiencing as well.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:cl**********@coranto.ucs.mun.ca...
Along the lines of my last post, entitled "What Should I Close" the memory
error I got when I was operating my mdb seems to have spawned something
else.

The pop up form, which I presume is the cause of the trouble after opening
and closing it so many times, will no longer open.

It cannot be opened in design view.

When I try to import it into a new database, it doesn't come and I get
table created called "Name AutoCorrect Save Failures" (I don't have
autocorrect on) tells me the failure reason is "Could not open the object"

However, when I go into the original project, I can open the module for
this form.

What on earth have I done?

Nov 13 '05 #2
Allen Browne wrote:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

You may well find that the corruption was the cause for the memory errors
you were experiencing as well.


Thanks Allen, no, that didn't work. When I imported the forms, I
selected all, but the form in question did not come over.

It's a small enough form that, with the code from its module which I can
still access, I should be able to rebuild.

With respect to the other question I asked on memory error, would this
have caused a memory leak?

dim dbs as dao.database
dim rst as dao.recordset

set dbs = access.currentdb

<various code including opening and closing rst but no dbs.close>

Exit_Proc:

set rst = nothing
Set dbs = nothing

Should I hve dbs.close in there somewhere?

I've never really closed database variables. I do remember one
application (an oracle front end in Access) which would crap out after a
lot of "on current" procedures were fired from moving from one record to
another in a pass through query. The on current proc involved one or
more DAO procedures, all of which had a database variable, but for which
all I did was set dbs = nothing but never a dbs.close.

The behaviour stopped when I went from a 256 Meg ram machine to my
current 2 Gig ram machine....

--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #3
Another alternative for trying to recover a damaged form is the undocumented
SaveAsText and LoadFromText.

Your code looks fine. The rule of thumb is to only close what you open. If
you actually *opened* a database, you should close it, e.g.:
Dim dbData As DAO.Database
Set dbData = OpenDatabase("C:\SomeOtherFile.mdb")
'...
dbData.Close
Set dbData = Nothing
In your case, though, you did not open a database, but merely pointed a
variable at something that was already open, so your code is correct and it
would not be appropriate to close it.

Closing things you did not open can cause problems.
For example, if you code a transaction like this:
Dim ws As DAO.Workspace
Set ws = dbEngine(0)
'...
ws.Close '<= Wrong: you didn't open it!!!
then at this point Access does actually close the database. Then it silently
and automatically reopens it. However, any forms that were open just lost
there RecordsetClone, because that was dependent on the open workspace. So
after that faulty code, attempts to refer to the RecordsetClone of the form
that was already open will result in errors.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:cl**********@coranto.ucs.mun.ca...
Allen Browne wrote:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

You may well find that the corruption was the cause for the memory errors
you were experiencing as well.


Thanks Allen, no, that didn't work. When I imported the forms, I selected
all, but the form in question did not come over.

It's a small enough form that, with the code from its module which I can
still access, I should be able to rebuild.

With respect to the other question I asked on memory error, would this
have caused a memory leak?

dim dbs as dao.database
dim rst as dao.recordset

set dbs = access.currentdb

<various code including opening and closing rst but no dbs.close>

Exit_Proc:

set rst = nothing
Set dbs = nothing

Should I hve dbs.close in there somewhere?

I've never really closed database variables. I do remember one
application (an oracle front end in Access) which would crap out after a
lot of "on current" procedures were fired from moving from one record to
another in a pass through query. The on current proc involved one or more
DAO procedures, all of which had a database variable, but for which all I
did was set dbs = nothing but never a dbs.close.

The behaviour stopped when I went from a 256 Meg ram machine to my current
2 Gig ram machine....

Nov 13 '05 #4
Allen Browne wrote:

Another alternative for trying to recover a damaged form is the undocumented
SaveAsText and LoadFromText.
I'll google this and see what happens.
Your code looks fine. The rule of thumb is to only close what you open. If
you actually *opened* a database, you should close it, e.g.:
Dim dbData As DAO.Database
Set dbData = OpenDatabase("C:\SomeOtherFile.mdb")
'...
dbData.Close
Set dbData = Nothing
In your case, though, you did not open a database, but merely pointed a
variable at something that was already open, so your code is correct and it
would not be appropriate to close it.


OK, thanks. I was always worried that dbs.close (when set dbs =
access.currentdb had been a previous line) might close the actual
database.

As always, I appreciate your time.
--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^
Nov 13 '05 #5
Just try it in the Immediate Window, Tim.

Although undocumented, it's dead easy to use.
It exports an object (such as a form) to a text file, so you can reimport it
into another database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Tim Marshall" <tm******@morgan.ucs.mun.ca> wrote in message
news:41***************@morgan.ucs.mun.ca...
Allen Browne wrote:

Another alternative for trying to recover a damaged form is the
undocumented
SaveAsText and LoadFromText.


I'll google this and see what happens.

Nov 13 '05 #6
Allen Browne wrote:
Just try it in the Immediate Window, Tim.

Although undocumented, it's dead easy to use.


It certinly is easy, thanks, I'll file that one away up in my head.

Unfortunately, though, for my app, whenever I try it, A2003 shuts down.

It must have gotten corrupted badly somehow before or during the
operation that caused it to vabish. It is close to hallowe'en, after
all, so maybe this is n Access ghost story. 8)
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #7
Tim Marshall <TI****@antarctic.flowerpots> wrote in
news:cl**********@coranto.ucs.mun.ca:
dim dbs as dao.database
dim rst as dao.recordset

set dbs = access.currentdb

<various code including opening and closing rst but no dbs.close>

Exit_Proc:

set rst = nothing
Set dbs = nothing

Should I hve dbs.close in there somewhere?


You can put it in, but it won't do anything, as your variable refers
to the db open in the Access user interface. Since you really don't
want to close that, it's not a good idea to do so.

You *do* want to close your recordset before setting it to Nothing,
though.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #8

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

Similar topics

3
by: Tim Tyler | last post by:
The user has come back to my page - and I have session data held in hidden form fields that I want to restore. Getting these values using Javascript works fine in Mozilla Firebird - and the like...
2
by: Joseph | last post by:
What am I missing form this method that will prevent access to the parent form when the frmB is active? If you run this method, you can still access the parent form and its functionality. Sub...
1
by: Kun | last post by:
Hi there, I think vs.net missing default name for new form. Scenario: 1. I create new Window Application by default it give me Form1 2. I add Form2 3. In Form1_Load event I try to get form2...
23
by: Dave G | last post by:
Since upgrading one of my clients from A97/W2000 to A2003/XP they have suffered no end of data corruption problems, mainly involving one of the main tables. The corruption can result in one...
0
by: JotaO | last post by:
Hi! I'm having a very disturbing problem. I'm working in a program witch has several forms (windows forms)
3
by: mak2045 | last post by:
I copied a form (Microsoft 2000 with Visual Basic 6.0) that had a procedure behind the text box and renamed it. I did not get an error message, but the new form that I thought I created did not...
5
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an...
4
by: Salad | last post by:
I have A2003 split; FE on the C drive, BE on the network. There are some other people in the system. The FE app is in A2003, the backend in A97. I have an opening form; MainMenu that opens. ...
4
by: Salad | last post by:
I have an A97 MDB that I converted to A2003 yesterday. My MainMenu calls ARInfoForm. I hit the Exit button in ARInfoForm and it closes and displays/activates the MainMenu just fine. The...
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
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...
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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.