473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

ACCESS accessibility from a C++ process launched from an ACCESS form

Here is my problem. From an ACCESS form, I run a C++ process reaching
the same database in read/write mode via the ODBC driver. An error
occurs: " The database has been placed by an unknown user in a state
preventing it from being opened either locked. SQLSetConnectAttr
failure of the pilot " (Nota : translated approximatively from the
french error message). However, if I have used an another form before
(eg. to modify a table), or if I have modified myself a record of any
table, there is no problem. It seems that the database is in a state "
read-only " by default until there is some modification made directly
with ACCESS.
Do you know a mean to solve this problem or to make this manual
operation automatically/systematically ? Thanks.

System used : Windows XP pro
Access used : ACCESS 2002
Nov 12 '05 #1
1 1668
Sorry Fred, I'm not familiar with your problem. From what you wrote however,
this is
what I would do (until I found a better solution):

1. Create a Temp Table with one field (of any type, I would use yes/no)
let's call it tblTempODBC_Unlock

2. On the "On Open" event of the form that runs the C++ process add code
to open the table, change the value of the first field, save the changes
and
close the table.

now you should be ready to use your C++ process without any problems!

Good Luck

Tom C
"Fred F." <ff********@ifrance.com> wrote in message
news:90*************************@posting.google.co m...
Here is my problem. From an ACCESS form, I run a C++ process reaching
the same database in read/write mode via the ODBC driver. An error
occurs: " The database has been placed by an unknown user in a state
preventing it from being opened either locked. SQLSetConnectAttr
failure of the pilot " (Nota : translated approximatively from the
french error message). However, if I have used an another form before
(eg. to modify a table), or if I have modified myself a record of any
table, there is no problem. It seems that the database is in a state "
read-only " by default until there is some modification made directly
with ACCESS.
Do you know a mean to solve this problem or to make this manual
operation automatically/systematically ? Thanks.

System used : Windows XP pro
Access used : ACCESS 2002

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan McGuffin | last post by:
I am trying to develop some vb.net code that will will store 1 or more processes in an array of processes, then loop through the array determining when each one has exited. Upon each one exiting, I...
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
28
by: deko | last post by:
After doing a lot of vba work, I've noticed the size of my mdb has grown, even though no data or objects have been added. I've read that the following procedure will remedy this and improve...
2
by: TechBoy | last post by:
I am trying to learn on the fly about Access Security for an app we are developing. I realize Access security is an advanced subject with many details. I wanted to share a scenario and ask a...
0
by: John Bowman | last post by:
Hello, I need to control a launched app for auto testing purposes. So I have the following driver program "A" that launches simple app "B". Driver program A launches app B successfully & sets...
6
by: Me | last post by:
I am looking for some suggestions or sample code for an application the sits in the system tray (a TSR) and then executes code that I specify when a certain executable is launched. As an example,...
0
by: microb0x | last post by:
Is there any difference in the way an Access .mdb file is launched from directly double-clicking the file through windows explorer versus using code within another Access file to launch the...
3
by: nome | last post by:
Hello Hoping someone can help explain the following behaviour. I have an application that does a series of redirects before hitting in a login page. If I insert this application hyperlink to...
32
by: John Wright | last post by:
I have a long process I run that needs to be complete before the user can continue. I can change the cursor to an hourglass, but I want to update the Status Strip on the bottom during the process. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.