473,800 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with Registry Functions under A2002

I am getting and setting registry values successfully with two functions
from
the Getz/Litwin/Gilbert book: adh_accRegGetVa l and adh_accRegWrite Val.

I have two cases now where these do not work under Access 2002. There is
no error, the GetKey function based on adh_accRegGetVa l simply returns a
zero length string every time.

In both cases the PC also had the 97 Runtime installed on them. Would this
cause a conflict in this area? I have 97 and 2000 on my PC and the
functions work just fine and on every other machine I've tested except
those with Access 2002.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #1
6 1631
I don't have copies of that code handy, but I can't imagine any reason why
having the 97 runtime would affect the use of an OS API call. Are you sure
the key actually exists on the machine(s) in question?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Rick Brandt" <ri*********@ho tmail.com> wrote in message
news:2p******** ****@uni-berlin.de...
I am getting and setting registry values successfully with two functions
from
the Getz/Litwin/Gilbert book: adh_accRegGetVa l and adh_accRegWrite Val.

I have two cases now where these do not work under Access 2002. There is
no error, the GetKey function based on adh_accRegGetVa l simply returns a
zero length string every time.

In both cases the PC also had the 97 Runtime installed on them. Would this cause a conflict in this area? I have 97 and 2000 on my PC and the
functions work just fine and on every other machine I've tested except
those with Access 2002.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #2
"Douglas J. Steele" <NOSPAM_djsteel e@NOSPAM_canada .com> wrote in message
news:2Q******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
I don't have copies of that code handy, but I can't imagine any reason why
having the 97 runtime would affect the use of an OS API call. Are you sure
the key actually exists on the machine(s) in question?


Yeah, they're definitely there. My concern is that the API reference is to
MSAccess.exe. What exactly does this reference mean when there are multiple
versions of Access installed? Is it "the last one used" like the file
registration and if so, should any/all of them work the same way?

Nov 13 '05 #3
"Rick Brandt" <ri*********@ho tmail.com> wrote in message
news:2p******** ****@uni-berlin.de...
"Douglas J. Steele" <NOSPAM_djsteel e@NOSPAM_canada .com> wrote in message
news:2Q******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
I don't have copies of that code handy, but I can't imagine any reason why having the 97 runtime would affect the use of an OS API call. Are you sure the key actually exists on the machine(s) in question?
Yeah, they're definitely there. My concern is that the API reference is

to MSAccess.exe. What exactly does this reference mean when there are multiple versions of Access installed? Is it "the last one used" like the file
registration and if so, should any/all of them work the same way?


As I said, I don't have a copy of the code, so I don't know the
declarations. If all that's there is msaccess.exe, I'm not sure which one
it'll pick. I would assume that it looks in all of the normal places
(Windows, System, Current Directory, Path, etc) to find the file, but the
order in which it searches can vary from OS to OS.

Having said that, though, there are obviously ways of working with the
registry that don't involve msaccess.exe. I've used the code at
http://www.thescarms.com/vbasic/registry.asp myself several times.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


Nov 13 '05 #4
"Rick Brandt" <ri*********@ho tmail.com> wrote:
I am getting and setting registry values successfully with two functions
from
the Getz/Litwin/Gilbert book: adh_accRegGetVa l and adh_accRegWrite Val.

I have two cases now where these do not work under Access 2002. There is
no error, the GetKey function based on adh_accRegGetVa l simply returns a
zero length string every time.


I don't know the code. However I did have a problem recently where a person with
User permissions couldn't open a registry key. Turns out the problem was that my
code was, by default, attempting to open the key with read/write privileges. Which
Users aren't allowed to do in that area of the registry. Changing the open to read
made the reading of the registry work just fine.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #5
"Rick Brandt" <ri*********@ho tmail.com> wrote in
news:2p******** ****@uni-berlin.de:
"Douglas J. Steele" <NOSPAM_djsteel e@NOSPAM_canada .com> wrote in
message
news:2Q******** ***********@new s01.bloor.is.ne t.cable.rogers. com...
I don't have copies of that code handy, but I can't imagine any
reason why having the 97 runtime would affect the use of an OS
API call. Are you sure the key actually exists on the machine(s)
in question?


Yeah, they're definitely there. My concern is that the API
reference is to MSAccess.exe. What exactly does this reference
mean when there are multiple versions of Access installed? Is it
"the last one used" like the file registration and if so, should
any/all of them work the same way?


There's only one registered MSAccess at any one time. If you use
both A97 and a later version of Access and you've not neutered the
relevant *.srg files (instructions on MichKa's website,
http://trigeminal.com), then the registration of the handler for
Access files will repeatedly switch back and forth. If you *have*
neutered the A97 *.srg files, the default association will be with
your later version of Access.

So, you really can't use that as the basis for knowing which version
of Access to use.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #6
"David W. Fenton" <dX********@bwa y.net.invalid> wrote in message
news:Xn******** *************** ***********@24. 168.128.86...
"Rick Brandt" <ri*********@ho tmail.com> wrote in
news:2p******** ****@uni-berlin.de:

There's only one registered MSAccess at any one time. If you use
both A97 and a later version of Access and you've not neutered the
relevant *.srg files (instructions on MichKa's website,
http://trigeminal.com), then the registration of the handler for
Access files will repeatedly switch back and forth. If you *have*
neutered the A97 *.srg files, the default association will be with
your later version of Access.

So, you really can't use that as the basis for knowing which version
of Access to use.


I guess that brings me back to the original question. If the API reference
is...

Declare Function adh_accRegGetVa l Lib "msaccess.e xe" Alias "#70" (ByVal
hkeyRoot As Long, ByVal strSubKey As String, ByVal strValName As String,
lpData As Any, ByVal lngMaxLen As Long) As Long

....should it make any difference which "msaccess.e xe" is being referenced?
Shouldn't *any* of them work the same regarding the adh_accRegGetVa l
function? Again, on my PC I have both A97 and A2K and I can switch between
those all I want and the function works just fine.

I guess I need to see if I can find a PC that has Access 2002 *only* and
see if the function works there. I really haven't determined that having
more than one version is related to the problem at all and frankly I
suspect that it is not.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #7

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

Similar topics

19
11891
by: Gerson Kurz | last post by:
AAAAAAAARG I hate the way python handles unicode. Here is a nice problem for y'all to enjoy: say you have a variable thats unicode directory = u"c:\temp" Its unicode not because you want it to, but because its for example read from _winreg which returns unicode. You do an os.listdir(directory). Note that all filenames returned are now unicode. (Change introduced I believe in 2.3).
4
2304
by: David | last post by:
Hi, I want to work with Access 2002. I will need to be able to distribute my application to users that may still have access 2000 on their computers. I know access 2002 has a function that enables you to convert a database to a format of an earlier version of Access. I wanted to check for any unforeseen problems so here is what I did: I used Access 2002 to convert my Access 2000 application to the 2002
1
1378
by: Richard Holliingsworth | last post by:
Hello: Thanks for reading this. We just converted to A2002 and some of my querries have stopped working and I can't figure out why. Basically, anything with a "NOT" is not working. For example: select * from b321bl where stdverifyby <> "demonstration"
1
1268
by: Paul Drabik | last post by:
I have an app written in A97. I also have sporatic users upgrading to A2002 as they get XP on the machines. So they need to open my A97 app. To do so, of course, I open the MDB exclusively to allow it to "convert" which actually seems like just a syntax check since it stays in A97 format. Here is the question: If I make a change to a form or report, what is best way to get the A2002 environment to re-convert ... forcing it to do so?
1
1428
by: Rob Parker | last post by:
I posted this (with a different subjetc line) in the ms.public.access.forms newsgroup a few days ago, but haven't had a single response there. I'm hoping maybe someone here can help. Using Access 2002: I have downloaded a tutorial database, which has a form containing a bound object frame to display a picture. The picture field in the underlying table has an OLE Object datatype, and when a picture is inserted (either directly into the...
1
1776
by: Rob Parker | last post by:
I posted this with a different subject line (in two posts - I added additional info in the second) in this newsgroup a few days ago, but haven't had a single response. Hopefully, that was because I posted at the weekend, and the experts were all having a well-earned rest and missed it first time around. I'm hoping someone here can help - I've had no joy in other avenues. Now to the problem: Using Access 2002: I have downloaded a...
4
3540
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
6
2234
by: tombsy | last post by:
Hello Group. I work for a company who is about to embark on a long awaited Office upgrade from Office 97 to Office XP. Office XP comes with Access 2002. I am an accomplished Access developer so I have read up on the complexities of upgrade in the corporate environment. Also the need to carry out a full MDB audit to get rid of the redundancy etc etc
0
1342
by: Tom | last post by:
All: I posted on this yesterday, but for whatever reason, Google isn't dealing nicely with it... Anyway, I need to install A2000 on a computer that already has A2002 so I can create A2000 mde files. I have the A2000 install disk. Our IT department controls the installation of A2002. After installing A2000 (into a different directory than A2002)
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.