?
Solved

backup

Posted on 1999-11-18
14
Medium Priority
?
203 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:sonalchouhan
  • 6
  • 3
  • 2
  • +2
14 Comments
 

Author Comment

by:sonalchouhan
ID: 2216334
Edited text of question.
0
 

Expert Comment

by:Saradhi
ID: 2216563
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
 
LVL 7

Expert Comment

by:Vbmaster
ID: 2216837
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Author Comment

by:sonalchouhan
ID: 2218908
well saradhi this is not a solution to it
0
 

Author Comment

by:sonalchouhan
ID: 2218914
sraradhi dont give such stupid ans for buying generator or ups

try to ans properly

sorry no hard feelings
0
 

Expert Comment

by:Saradhi
ID: 2218960
Well! It all depends on what kind of questions you ask.
0
 

Author Comment

by:sonalchouhan
ID: 2219079
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
 

Expert Comment

by:Saradhi
ID: 2219114


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
 

Author Comment

by:sonalchouhan
ID: 2219325
well you think so

dont ans if u dont know


sorry if hurt
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 2219868
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
 

Author Comment

by:sonalchouhan
ID: 2221641
yes exactly TheLearnedOne  well any ans

thanks
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 2225029
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
 
LVL 2

Accepted Solution

by:
AndySulz earned 0 total points
ID: 2323866
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
 
LVL 2

Expert Comment

by:AndySulz
ID: 2323869
CopyFile C:\BLAA\MYDB.mdb", "a:\MYDB.mdb", False

will go in your command button
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question