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

Database acces problem : moving application from one comput to another 1

Status
Not open for further replies.

Harulem

MIS
Mar 26, 2004
8
BE
I apologize in advance if the question seems stupid to most of you.
I have completed a VFP program, and it is working fine, but only on the computer I used to build it.
When I try to put it on another computer, there is something wrong with the database access. The forms and menus are running, but any database operation fails. Select returns nothing, and insert returns "cannot update cursor".
In this case I built an executable and included the needed dlls to make it run on a computer without VFP installed.
At this time, the program is supposed to work independently on both computers, so there is no need for shared access. so I thought I just had to copy the empty tables on the second computer to make it work, and I included them in the same directory as the .exe and the dlls.
Since it did not work, I even tried in desperation to use for all needed files on the second computer the exact same access path as the one used on the first. It did no good.
Can anyone point me in the right direction?
Thanks in advance.
 
do you get an error opening the files or only when trying to write to one?
if the first, do you use absolute paths in your program?
if the latter, do the tables have a readonly attribute or does the user need write-privileges in that directory.

hth, Stefan
 
Is the database location in your PATH? What are the error numbers and messages? Are you tring to acces your tables from the DE of a form? I your database included in your Project? (it shouldn't be)

Regards,

Mike
 
My god, it was as simple as Stefan suggested.
Because I used a CD to copy them, the tables were read only.
Anyway, thank you both for such quick replies !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top