Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO CLOSE DATABSE

Status
Not open for further replies.

PUNCHI

Programmer
Sep 11, 2002
9
FR
I HAVE CREATED PROJECT OF SIMPLE LEDGER I HAVE CREATED A SIMPLE MDIFORM AND IN UNLOADQUERY I HAVE COPIED A FILE INTO A FLOPPY DRIVE THROUGY FILECOPY
WHEN I DO NOT OPEN THE FORM WHICH USES CONNECTION WITH THE DATABASE IT WORKS OK
BUT AS SOON I ADD ENTRY OR JUST OPEN THE FORM WHICH ENTERS THE DATA INTO DATABASE AND I CLOSE THE PROJECT IT CREATES ERROR
EITHER TELL ME HOW TO CLOSE DATABASE EITHER IT IS OPEN IN OTHER FORM TO SAVE IT
OR
HOW I CAN MAKE IF COMMAND THAT IF FORM IS SHOWN UNLOAD IT
I USE
IF FORM1.VISIBLE THEN
UNLOAD FORM1
END IF
BUT THE PROBLEM HERE IS THAT IT FIRST LOADS FORM1 THEN UNLOAD IT
 
maybe i'm reading this wrong.. but why wouldn't you (if needed) make a sub main, load form1 then kill it but hide it if it's not to be shown. then load other forms.

john
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top