Hi,
Here I come again.I have 3 questions:
1.We have VFP database with a interface.Because we needed a new report,I made program that make that new report(few select statement and then openning Excel and running macro to manipulate those data).The problem was with linking to database tables.Because of access right set in code ,the only choice I had was to copy the tables I needed to new location and link those tables to my program.So first thing my program do is delete old .dbf,.cdx,.fpt (on my location) files and then copy new one to my location.It works fine -I always have the newest data that users are entering through interface.My question: is this OK- copying tables and indexes?Can it have some consequences?
2.As I said users are entering new data using interface.Strange thing is that when they delete a record ,so you can't see it through interface ,my program still have it .Why is this?Because I'm coming from Access I know that in Access records are only marked as deleted but are deleted when you compact the database.Is this case in VFP and what I can do to remove those deleted records from my report.
3.Last question:Is there a way to send e-mail from my program to a person if program was interupted for any reason.(We want to run this program automatically early in the morning when nobody is around.I don't have any error handeling code in my program
Any help appreciated.
Lyn
Here I come again.I have 3 questions:
1.We have VFP database with a interface.Because we needed a new report,I made program that make that new report(few select statement and then openning Excel and running macro to manipulate those data).The problem was with linking to database tables.Because of access right set in code ,the only choice I had was to copy the tables I needed to new location and link those tables to my program.So first thing my program do is delete old .dbf,.cdx,.fpt (on my location) files and then copy new one to my location.It works fine -I always have the newest data that users are entering through interface.My question: is this OK- copying tables and indexes?Can it have some consequences?
2.As I said users are entering new data using interface.Strange thing is that when they delete a record ,so you can't see it through interface ,my program still have it .Why is this?Because I'm coming from Access I know that in Access records are only marked as deleted but are deleted when you compact the database.Is this case in VFP and what I can do to remove those deleted records from my report.
3.Last question:Is there a way to send e-mail from my program to a person if program was interupted for any reason.(We want to run this program automatically early in the morning when nobody is around.I don't have any error handeling code in my program
Any help appreciated.
Lyn