Home > database >  PB application system using the ACCESS database error prompt
PB application system using the ACCESS database error prompt

Time:09-21

PB application system using the ACCESS database db. The MDB, the boot automatic login, the login automatically boot startup tip: could not find file 'C: \ Windows \ System32 \ db MDB', if manual open no problem, how to deal with?

CodePudding user response:

In the program to evaluate a 'C: \ Windows \ System32 \ db MDB' existence, there is no delay, until there.

CodePudding user response:

Modify the program, the connection transaction the MDB file name in the changing with absolute path name,

CodePudding user response:

Actually I have absolute path Settings of the following statements (gs_curdir), but I still suggest the above error,

The sqlca. DBMS="ODBC"
The sqlca. The AutoCommit=false
The sqlca. Dbparm="connectstring='driver=Microsoft access driver (*. MDB); DBQ="+ gs_curdir +" \ db MDB '
"
Connect using the sqlca;
If the sqlca. Sqlcode=1 then
Messagebox (' message 'and' cannot connect to the system parameter table! ')
The halt close;
end if

CodePudding user response:

Should be gs_curdir out of the question,
Can be written before the connect messagebox (' gs_curdir 'gs_curdir)
See the path to where the,

Another:
ODBC connection MDB database, you can use to configure ODBC data sources, and do not use direct connection file,

CodePudding user response:

Messagebox (' gs_curdir 'gs_curdir) before the content of the tip gs_curdir not wrong, actually in the WINDOWS login after normal manual open procedure is not wrong, because the program USES the "boot to run automatically when login" - when there is error in the boot automatically run, program run normally and no error, so you mean there is no,

reference 4 floor wag_enu response:
should be gs_curdir out of the question,
Can be written before the connect messagebox (' gs_curdir 'gs_curdir)
See the path to where the,

Another:
ODBC connection MDB database, you can use to configure ODBC data sources, and do not use direct connection file,

CodePudding user response:

Should or path

CodePudding user response:

reference 5 floor blpig reply:
messagebox (' gs_curdir 'gs_curdir) before the content of the tip gs_curdir not wrong, actually in the WINDOWS login after normal manual open procedure is not wrong, because the program USES the "boot to run automatically when login" - when there is error in the boot automatically run, program run normally and no error, so you mean there is no,

Refer to 4th floor wag_enu response:
Should be gs_curdir out of the question,
Can write before connect mes...


Write the messagebox (... ), tried to compile the boot run?

CodePudding user response:

Direct delay actually start not to go, is the most convenient for Windows 7, plans can set delay start

CodePudding user response:

Sure is gs_curdir is out of question, if in a startup, taken by getcurrentdirectory exe is not necessarily the path, this has nothing to do with you go to double click the program is,
Because getcurrendirectory apply to actual work in shortcut directory, and this is the system in the startup path

General general startup is through
The FUNCTION ulong GetModuleFileName (ulong hModule, ref string lpFileName, ulong nSize) LIBRARY "kernel32. DLL" ALIAS FOR "GetModuleFileNameA
"Exe file path, in the application to intercept the current run path

CodePudding user response:

Must be path problem, such as have not understand send direct messages with flush
  • Related