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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 7 read-only .dbf

Status
Not open for further replies.

cyclerock

Technical User
Jan 20, 2004
2
US
Sorry, but I'm not a programer and have been able to get along with VFP using wizards. However one of my .dbf tables got somehow marked read-only and now I can't enter the append mode.

I'm using VFP 7.

My current sorurce of info is the QUE book for VFP 3.

Can some one please give me a command line that will get this table out of read-only mode and allow the append mode?

Darrel
 
I guess I would look at the property of the table in question and make sure the read only property is not check. (Locate the table and right click go to property)
 
cyclerock

Are they marked as "included" in your project? If so change that to exclude otherwise that would make them read-only at runtime.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
In response to the two comments. The table is a simple "flat" table and I'm not working with it from a project. The table file is marked as read-only. However if I change the file attribute to anything else, VFP will not open the table and returns the error message "Access denied".

VFP Help and my QUE book do not cover the table "read-only" attribute that I can find.

??????????????????

Darrel
 
cyclerock,

Have you tried unchecking all the attributes for the table (including of course the read only one) and then restarting the computer you are doing this on? Sounds to me like Windows is somehow keeping this table locked on you. If none of that works then go get a table fix utility such as SALVDBF or one of the others and run it on that table. Another thing to maybe try is to copy that table and try to use the copy instead. Or, create a duplicate table of the one you have and pour data from this read only copy to the new table. One of these should get you past this problem.

Slighthaze = NULL
[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top