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

Disappearing forms!


This is concerning Access 2000 and some pretty incomprehensible behavior

OK, I hope someone can explain this to me. After spending some 30 hours
developing forms and modules for an Access database (with a lot of help form
the folks here), suddenly Access decides to delete all of the forms and
modules.

I was working on a form to open another form to a specific record. I had just
finished the form for a trial and closed it, the typical dialog obx came up
asking if I wanted to save the form, I said yes, it opend the dialog box
asking for a name and I entered a name (frmInMov), hit the ok button and
suddenly all the forms listed in Database view window disappeard. Just gone.
Also gone were all the modules.

The tables are fine as are the queries and reports I've written to date, but
all forms are simply not there. No amount of messing with it seems to turn
anything up.

Any ideas at all or do I just have to start over?

Thanks for any help,

A very depressed Randy

----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email ab***@newsone.net
Nov 12 '05 #1
14 1935
Sounds to me as if this was an _object lesson_ in the advisability of making
regular, and frequent, backups. When I am developing a database, I tend to
save a backup no less than every couple of hours, and often every couple of
"significant changes".

If you haven't done any more to that database, make a copy and save the
original. In the end, if your time is worth anything, it may be worth your
while to send that to Peter Miller at http://www.pksolutions.com, who has an
excellent reputation for salvaging data from corrupted Access databases. In
the meanwhile, make another copy of the copy and try to use Access' compact
and repair on it.

But before you do that... check the scroll bar at the bottom of the Forms
tab of the database window... it is possible that the forms aren't _gone_
but only shifted so that you don't see them any more.

Larry Linson
Microsoft Access MVP
Larry Linson
Microsoft Access MVP

<st*********@charter.net> wrote in message
news:br**********@news.netmar.com...

This is concerning Access 2000 and some pretty incomprehensible behavior

OK, I hope someone can explain this to me. After spending some 30 hours
developing forms and modules for an Access database (with a lot of help form the folks here), suddenly Access decides to delete all of the forms and
modules.

I was working on a form to open another form to a specific record. I had just finished the form for a trial and closed it, the typical dialog obx came up asking if I wanted to save the form, I said yes, it opend the dialog box
asking for a name and I entered a name (frmInMov), hit the ok button and
suddenly all the forms listed in Database view window disappeard. Just gone. Also gone were all the modules.

The tables are fine as are the queries and reports I've written to date, but all forms are simply not there. No amount of messing with it seems to turn
anything up.

Any ideas at all or do I just have to start over?

Thanks for any help,

A very depressed Randy

----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the eb ----- http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email

ab***@newsone.net
Nov 12 '05 #2
What if you create a new database and try to import the objects in
this one? What if you go to Tools, Options, Show Hidden Objects =
YES. Can you see them?
Nov 12 '05 #3
pi********@hotmail.com (Pieter Linden) wrote in
news:bf**************************@posting.google.c om:
What if you create a new database and try to import the objects in
this one? What if you go to Tools, Options, Show Hidden Objects =
YES. Can you see them?


I did keep a copy of the database and really only lost about 4 hours work.
But I was pretty frustrated and I suspect had become a bit too comfortable.
Access had never done this to me before. Sigh.. So, I managed to copy the
tables from the old database (I had spent a LOT of time importing the data
from a elemental spreadsheet) and got that into the backup copy then spent
most of the rest of the day recreating the forms. At least it was easier
this time since I knew what to do and already had the process down. I'm
still quite new to this. And I made 2 backups that I recopied about every
half hour. I'll try not to get caught out like that again.

Just a note. The repair function didn't do anything and it was pretty clear
something was corrupted. It also wouldn't let me make new forms in that
database. Kept complaining that it couldn't find something (tables,
dependent queries, whatever).

OK, so lesson learned. Thanks for the input.

Backup Maniac Randy
Nov 12 '05 #4
no********@nomail.net (Randy Powell) wrote in
<Xn**********************************@216.168.3.44 >:
pi********@hotmail.com (Pieter Linden) wrote in
news:bf**************************@posting.google. com:
What if you create a new database and try to import the objects
in this one? What if you go to Tools, Options, Show Hidden
Objects = YES. Can you see them?

I did keep a copy of the database and really only lost about 4
hours work. But I was pretty frustrated and I suspect had become a
bit too comfortable. Access had never done this to me before.
Sigh.. So, I managed to copy the tables from the old database (I
had spent a LOT of time importing the data from a elemental
spreadsheet) and got that into the backup copy then spent most of
the rest of the day recreating the forms. At least it was easier
this time since I knew what to do and already had the process
down. I'm still quite new to this. And I made 2 backups that I
recopied about every half hour. I'll try not to get caught out
like that again.


Er, even during development it's a good idea to use a split
architecture, with tables in one MDB and forms, reports, etc., in
another MDB with links to the MDB where the data tables are. You
would have had one less hassle if you'd been doing that already.
Just a note. The repair function didn't do anything and it was
pretty clear something was corrupted. It also wouldn't let me make
new forms in that database. Kept complaining that it couldn't find
something (tables, dependent queries, whatever).

OK, so lesson learned. Thanks for the input.

Backup Maniac Randy


Well, also, how often do you compile your database? Do you have
compile on demand turned off? Have you ever decompiled? How often
to you compact?

All of these things are part of the regular development process and
insure that your application does not develop irretrievable
corruption of one or more objects.

Keep in mind that from A2K on, your whole project is stored in a
single record of the system table (this is why two people can't
edit your project at the same time), so corruption of one object
can quite easily leak over to many other objects.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #5
[snip]
--------------------

Well, also, how often do you compile your database? Do you have
compile on demand turned off? Have you ever decompiled? How often
to you compact?

All of these things are part of the regular development process and
insure that your application does not develop irretrievable
corruption of one or more objects.

Keep in mind that from A2K on, your whole project is stored in a
single record of the system table (this is why two people can't
edit your project at the same time), so corruption of one object
can quite easily leak over to many other objects.

Keep in mine that a year ago I didn't even know what Access was. So I'm
pretty much a newbie. I haven't compiled it at all. I thought you did that
when you were done. Not even sure how to decompile it. I hadn't realized
you could put the tables in one .mdb file and the forms, reports, etc in
another. I'll try messing with that a bit.

Seems the more I learn in this, the more I realize I don't know much.

Randy
Nov 12 '05 #6
/DECOMPILE is a command-line parameter, "officially undocumented" but
mentioned in some articles in the Knowledge Base (a great source of Access
help, BTW) at http://support.microsoft.com.

Create a separate shortcut on your desktop, right-click, and edit the
command line to include your database name and /DECOMPILE. In some
particular situations, of which yours might be one, decompiling can save you
a lot of trouble; on the other hand, it shouldn't be used willy-nilly
because in certain other situations, it could make some problems worse or
cause problems.

In the module window, I go into the Tools | Options and uncheck "Auto Syntax
Check" because it is such a pain to me to be interrupted before I finish
typing in a line of code. Having done that, before I save a change, I go to
Debug on the menu, and choose "Compile" -- that gives me a check that I
haven't created compilation errors (and it also compiles the modules, so
they don't have to be compiled on first use, thus slowing me down in
execution).

But, it is better to overemphasize saving backup copies during development
than to underemphasize it -- you don't have to keep every copy you save (but
with the miniscule price and humungous size of hard drives, these days, it
is feasible to do so if you have a "newish" machine).

Best of luck with your project.

Larry Linson
Microsoft Access MVP
"Randy Powell" <no********@nomail.net> wrote in message
news:Xn**********************************@216.168. 3.44...
[snip]
--------------------

Well, also, how often do you compile your database? Do you have
compile on demand turned off? Have you ever decompiled? How often
to you compact?

All of these things are part of the regular development process and
insure that your application does not develop irretrievable
corruption of one or more objects.

Keep in mind that from A2K on, your whole project is stored in a
single record of the system table (this is why two people can't
edit your project at the same time), so corruption of one object
can quite easily leak over to many other objects.

Keep in mine that a year ago I didn't even know what Access was. So I'm
pretty much a newbie. I haven't compiled it at all. I thought you did that
when you were done. Not even sure how to decompile it. I hadn't realized
you could put the tables in one .mdb file and the forms, reports, etc in
another. I'll try messing with that a bit.

Seems the more I learn in this, the more I realize I don't know much.

Randy

Nov 12 '05 #7
> Seems the more I learn in this, the more I realize I don't know much.

Oh, and then you open a copy of the Developer Handbook, and you really
realize how little you know... but learning is like that.
Nov 12 '05 #8
pi********@hotmail.com (Pieter Linden) wrote in
news:bf*************************@posting.google.co m:
Seems the more I learn in this, the more I realize I don't know much.


Oh, and then you open a copy of the Developer Handbook, and you really
realize how little you know... but learning is like that.


Thanks for the help. I sorta got tossed into this a year or so ago and have
been learning as fast as I can.

Randy

Nov 12 '05 #9
bo*****@localhost.not (Larry Linson) wrote in
<EG******************@nwrddc01.gnilink.net>:
Create a separate shortcut on your desktop, right-click, and edit
the command line to include your database name and /DECOMPILE.
Or, *don't* put in a database name, and then you can use it to
decompile *any* MDB, simply by choosing one from the FILE OPEN
dialog when Access opens.
. . . In
some particular situations, of which yours might be one,
decompiling can save you a lot of trouble; on the other hand, it
shouldn't be used willy-nilly because in certain other situations,
it could make some problems worse or cause problems.
It is more useful in A97, in my experience, than in A2K and beyond.
In the module window, I go into the Tools | Options and uncheck
"Auto Syntax Check" because it is such a pain to me to be
interrupted before I finish typing in a line of code. Having done
that, before I save a change, I go to Debug on the menu, and
choose "Compile" -- that gives me a check that I haven't created
compilation errors (and it also compiles the modules, so they
don't have to be compiled on first use, thus slowing me down in
execution).
Also, in the VB window Options dialog, go to the GENERAL tab and
uncheck COMPILE ON DEMAND. If you want to know why, read this
article:

The real deal on the /Decompile switch
http://trigeminal.com/usenet/usenet004.asp
But, it is better to overemphasize saving backup copies during
development than to underemphasize it -- you don't have to keep
every copy you save (but with the miniscule price and humungous
size of hard drives, these days, it is feasible to do so if you
have a "newish" machine).


I don't make backups very often and I don't lose projects.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #10
In article <Xn**********************************@216.168.3.44 >, Randy Powell
<no********@nomail.net> writes:
pi********@hotmail.com (Pieter Linden) wrote in
news:bf*************************@posting.google.c om:
Seems the more I learn in this, the more I realize I don't know much.


Oh, and then you open a copy of the Developer Handbook, and you really
realize how little you know... but learning is like that.


Thanks for the help. I sorta got tossed into this a year or so ago and have
been learning as fast as I can.

Randy

Pieter, Larry and Daved,

Following up on the comment about putting the tables in one database (.mdb)and
the database structure (form, queries and reports, etc.) in another.

It seems this would be very useful if you had more than one user. I'm
currently working on a database for a little kids program over at our main
office. This program serves a LOT of small children. They have 3 people doing
clinical and case management work for the program, all of which do intakes
and such.

So, the question: I'd like to be able to keep the tables in one location and
have a front end form those tables on all 3 people's computers In such a way
that if person one does an intake, the central table is updated. I imagine
this is the main purpose of having one set of tables and multiple "front
ends".

yes?

So, how do you get the front end to write data to the central set of tables
over the network? I can see some functions in the Macros that would seem to
do this such as TransferDatabase.

If someone could point me to the appropriate Knowledge Base article or
whatever, I'd appreciate it.

Thanks,

Randy

----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email ab***@newsone.net
Nov 12 '05 #11

<no****************@charter.net> wrote in message
news:bs**********@news.netmar.com...
In article <Xn**********************************@216.168.3.44 >, Randy Powell
<no********@nomail.net> writes:
pi********@hotmail.com (Pieter Linden) wrote in
news:bf*************************@posting.google.c om:
Seems the more I learn in this, the more I realize I don't know much.

Oh, and then you open a copy of the Developer Handbook, and you really
realize how little you know... but learning is like that.


Thanks for the help. I sorta got tossed into this a year or so ago and have
been learning as fast as I can.

Randy

Pieter, Larry and Daved,

Following up on the comment about putting the tables in one database (.mdb)and
the database structure (form, queries and reports, etc.) in another.

It seems this would be very useful if you had more than one user. I'm
currently working on a database for a little kids program over at our main
office. This program serves a LOT of small children. They have 3 people doing
clinical and case management work for the program, all of which do intakes
and such.

So, the question: I'd like to be able to keep the tables in one location and
have a front end form those tables on all 3 people's computers In such a way
that if person one does an intake, the central table is updated. I imagine
this is the main purpose of having one set of tables and multiple "front
ends".

yes?

So, how do you get the front end to write data to the central set of tables
over the network? I can see some functions in the Macros that would seem to
do this such as TransferDatabase.

If someone could point me to the appropriate Knowledge Base article or
whatever, I'd appreciate it.


You import your tables from the current file into a new file. Then delete the
tables in the current file and then use File - Get External Data - Link Tables
to create links to the tables in the new file. The app works the same as before
except the tables are now linked instead of local.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #12
tom
David,

Good info on compile. I'm confused though, about why not to use
"compile on demand". I read the article... but it did not seem to
mention "compile on demand". What am I failing to understand?

Thanks,
-Tom
Also, in the VB window Options dialog, go to the GENERAL tab and
uncheck COMPILE ON DEMAND. If you want to know why, read this
article:

The real deal on the /Decompile switch
http://trigeminal.com/usenet/usenet004.asp

Nov 12 '05 #13
tom
David,

Whoops. Now I've read your posting in the thread "Why does Compile
On Demand increase chance of corruption?" and I get the idea.

-td
Nov 12 '05 #14
to*@nuws.com (tom) wrote in
<c1**************************@posting.google.com >:
Good info on compile. I'm confused though, about why not to use
"compile on demand". I read the article... but it did not seem to
mention "compile on demand". What am I failing to understand?


Compile on demand means that you can't really control *when* the
compile happens or *what* gets compiled. If you turn it off,
compile happens only when you tell it to (within certain
limitations, of course).

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

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

Similar topics

3
by: Csaba2000 | last post by:
I apologize for the length of the page below, but I've tried to whittle it down as much as I can. The problem is that Netscape 6.1 on my Win 2K Pro machine is disappearing the final row of the...
0
by: notalent | last post by:
I'm having a problem with a very basic program. I'm creating a app in Visual Studio (2003) C# to zip up a collection of specified files & directories and save them to a certain location. I have...
4
by: Howard Jess | last post by:
In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865), my form disappears from the HTML markup (below). To summarize: 1) In a <script> block in the <head> I create a form...
0
by: John Wind | last post by:
Hello, I posted this problem in a thread on a seperate message, I'm not sure I did it right so I started a new message, sorry for any problem this has caused. This problem has me pulling my hair...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
0
by: Mike Moore | last post by:
For some unreason my datasets keep disappearing from my web forms/controls. I see them in the solution explorer window, but when I do back to regenerate the dataset again the name of the dataset...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
6
by: George Yefchak | last post by:
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen...
1
by: JDeats | last post by:
I have many labels that are disappearing from my form when the user resizes it, they seem to dissapear when certain width/height thresholds are exceeded. I have no code in place purposely trying...
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: 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: 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
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
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,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.