Cabble hat geschrieben:die access datenbank liegt mit im ordner des programms (wo auch die exe liegt)
Das ist aber keine gute Idee. Dort hat Dein Programm keine Schreibrechte,
wird Dein Programm ohne Admin-Rechte wohl auch nicht zugreifen können.
Besser wäre sowas:
Code: Alles auswählen
Procedure.s GetSpecialFolder(CSIDL.l)
Protected *itemid.ITEMIDLIST
Protected location.s = Space(#MAX_PATH)
If SHGetSpecialFolderLocation_ (0, CSIDL, @*itemid) = #NOERROR
If SHGetPathFromIDList_(*itemid, @location)
CoTaskMemFree_(*itemid)
If Right(location, 1) <> "" : location + "" : EndIf
ProcedureReturn location
EndIf
EndIf
EndProcedure
Debug GetSpecialFolder(#CSIDL_COMMON_APPDATA) + "Cabble\unitbase.mdb"