backup

well i am making a software now what i want is that
i am entering the records and if the power is off or the system gets reseted i should get the backup


how do i come to know wethere a particular from is printed or no

sorry lack of ponts


thanks
sonalchouhanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sonalchouhanAuthor Commented:
Edited text of question.
0
SaradhiCommented:
Well I can't find a software solution for this. But, you can solve this problem,

"Buy a UPS or a generator."

You can buy one online at

www.amazon.com. if you don't have enough money go for a second hand at
www.auctions.com.

yours electrically,
Saradhi.

I am serious mind you!

0
VbmasterCommented:
What you want to do is store all records on disk instead of memory. This way you will loose nothing if the power is down (or what happens more often.. Windows freezes).

Check out files open for random access.. Should work if you work with records.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

sonalchouhanAuthor Commented:
well saradhi this is not a solution to it
0
sonalchouhanAuthor Commented:
sraradhi dont give such stupid ans for buying generator or ups

try to ans properly

sorry no hard feelings
0
SaradhiCommented:
Well! It all depends on what kind of questions you ask.
0
sonalchouhanAuthor Commented:
well it is a really a question
see if i have 25 entries in a screen and if the light goes i cant take a backup well all softwares like word and excel give the backup facility

it is possible

so this is not a stupid question but yes a stupid ans to buy ups or generator

just a suggestion
0
SaradhiCommented:


Thanks to Word and Excel. But, the file is not restored always, it is restored only if Word calls it's AutoSave for AutoRecovery command. It is not necessary that this is called always.

Recovery for such applications does seem to be important.

I am afraid that this doesn't serve any kind of purpose in your application except an acertained hype.

Your thought of saving files for recovery is really obnoxious.
0
sonalchouhanAuthor Commented:
well you think so

dont ans if u dont know


sorry if hurt
0
Bob LearnedCommented:
Are you trying to do data entry on a form, and if the power goes off, and when it returns, be able to tell if the form was printed?
0
sonalchouhanAuthor Commented:
yes exactly TheLearnedOne  well any ans

thanks
0
Bob LearnedCommented:
Well, one way would be to create a temporary file that would hold the information that was filled out from the data entry form

Maybe an INI file would be the easiest implementation.  In the file could contain the field names and values for each entry, and a flag as to whether the form was successfully printed.  

The file could then be deleted when no longer needed, or a new form is being processed.


0
AndySulzCommented:
Just use a copy file method to your A:\ drive or you Zip Drive.......

Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
 CopyFile C:\BLAA\MYDB.mdb", "a:\MYDB.mdb", False

and to restore the DB just switch the C:\blaa stuff with the a:\blaa stuf....this should solve your problem...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndySulzCommented:
CopyFile C:\BLAA\MYDB.mdb", "a:\MYDB.mdb", False

will go in your command button
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.