Hi!
I'm having a problem in A2K2. This should be simple, but I can't really
figure it out. First problem, I'm trying to set the property of a table,
via Vb to hidden, and I aslo would like to update the Description as well.
For some reason I can't seem to find any reference to doing this in the
online help.
Also, second part; I would like to find out more about reading, adding and
editing a registry entry via Access / VB. Although I haven't exhausted the
online help or knowledge base on this one yet, any help in directing me to a
resource would be great.
Thanks!
RWC. 5 3301
"RWC" <he********@sha w.ca> wrote in message
news:fB69b.4918 $AD1.340@pd7tw2 no... Hi!
I'm having a problem in A2K2. This should be simple, but I can't really figure it out. First problem, I'm trying to set the property of a table, via Vb to hidden, and I aslo would like to update the Description as well. For some reason I can't seem to find any reference to doing this in the online help.
Also, second part; I would like to find out more about reading, adding and editing a registry entry via Access / VB. Although I haven't exhausted
the online help or knowledge base on this one yet, any help in directing me to
a resource would be great.
Never wanted to hide a table via code so I can't answer that one.
An example of retuning a table's Description property follows. The error
handling is necessary because if the description hasn't been set the
property doesn't exist.
<code>
Function TableDescriptio n(tableName As String) As String
On Error GoTo errHandler
TableDescriptio n =
CurrentDb.Table Defs(tableName) .Properties("De scription")
Exit Function
errHandler:
TableDescriptio n = ""
End Function
</code>
There are VBA methods to read and write to the registry. Look for
DeleteSetting, GetAllSettings, GetSetting and SaveSetting.
There are also a dozen or so Windows API functions that deal with
the registry. I'm sure they are documented on msdn.microsoft. com.
"RWC" <he********@sha w.ca> wrote in message
news:fB69b.4918 $AD1.340@pd7tw2 no... Hi!
I'm having a problem in A2K2. This should be simple, but I can't really figure it out. First problem, I'm trying to set the property of a table, via Vb to hidden, and I aslo would like to update the Description as well. For some reason I can't seem to find any reference to doing this in the online help.
Also, second part; I would like to find out more about reading, adding and editing a registry entry via Access / VB. Although I haven't exhausted
the online help or knowledge base on this one yet, any help in directing me to
a resource would be great.
As the other respondent said, VBA gives you GetSetting, SaveSetting & so on.
These are easy to use, BUT, they put your keys at a fixed location in the
registry. I can't remember where that is (see online help), but I *do*
remember that it is not where I wanted it! So you might not want to use
those functions. (Geez msoft, how hard would it have been to have the extra
parameter! :-(
Try googling on "win32 registry vba" - there's sure to be tons around. But
here's a tip: carefully check the access level that you request on the
registry. In win95 (98? 9x?) it was not checked, & you could get away with
anything. But in winXP etc. it is checked, so code that used to run before,
might start getting permission errors. If you only want to read, just
request read - no more - & so on.
HTH,
TC
"TC" <a@b.c.d> wrote in message news:1063618288 .584568@teuthos ... As the other respondent said, VBA gives you GetSetting, SaveSetting & so
on. These are easy to use, BUT, they put your keys at a fixed location in the registry. I can't remember where that is (see online help), but I *do* remember that it is not where I wanted it! So you might not want to use those functions. (Geez msoft, how hard would it have been to have the
extra parameter! :-(
I'm not sure it's in the help file, but according to VBA & VBA in a Nutshell
SaveSetting writes to a subkey of
KEY_CURRENT_USE R\Software\VB and VBA Program Settings.
"rkc" <rk*@yabba.dabb a.do.rochester. rr.com> wrote in message
news:oI******** ***********@twi ster.nyroc.rr.c om... "TC" <a@b.c.d> wrote in message news:1063618288 .584568@teuthos ... As the other respondent said, VBA gives you GetSetting, SaveSetting & so on. These are easy to use, BUT, they put your keys at a fixed location in
the registry. I can't remember where that is (see online help), but I *do* remember that it is not where I wanted it! So you might not want to use those functions. (Geez msoft, how hard would it have been to have the extra parameter! :-(
I'm not sure it's in the help file, but according to VBA & VBA in a
Nutshell SaveSetting writes to a subkey of
KEY_CURRENT_USE R\Software\VB and VBA Program Settings.
Yes, I remember now. And that's why I don't like it! If you are installing
something that is common to the machine as a whole - not specific to the
current user - you want it to go in HKEY_LOCAL_MACH INE, and this is not
possible when using those functions.
TC
"Max" <ma*********@ya hoo.com> wrote in message
news:d7******** *************** ***@posting.goo gle.com...
(snip) If you want to write and read other registry settings try using win 32 API function like RegCreateKeyEx, RegOpenKeyEx etc.
Yep, I already do that :-)
But thanks for the advice anyway.
TC This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Picho |
last post by:
Hi all,
Lets say I have a "secret" I wish to "hide", lets say a database password.
For the more detailed problem, a web application/service that uses a
connection string.
all the solutions I came up with (embedding in code, encrypting-decrypting)
involve embedding the/another secret in the code. since my problem cannot
request a user intervention, I am at a stop.
|
by: Dr. Know |
last post by:
Greetings,
I am running IIS on W2kServer and am trying to use ASP with some
legacy X-Base tables. I cannot get the provider to connect.
Relevant code is:
strProvider = "Provider=vfpoledb;Data Source=C:\DB2\DDMS\"
set objConn = server.createobject("ADODB.Connection")
|
by: abcd |
last post by:
I want to get the list of data sources on the server machine using C# and
ASP.NET
any clues how to get that...I have done this using VB using SQLDataSources
function from ODBC32.dll
thanks
|
by: Kevin Swanson |
last post by:
I'm attempting some remote registry manipulation via C#. I've written a test
app to simply grab a specified key from a specified hive on a specified
machine. The call to OpenSubKey is throwing System.SecurityException.
Also of note: Sitting at my local box, I can open regedit and connect to the
remote registry. I see three hives: _CLASSES_ROOT, _LOCAL_MACHINE, and
_USERS. I can open all but HKEY_LOCAL_MACHINE. When I try to expand that...
|
by: Shiraz |
last post by:
Hi
I just made an installer for an application that uses two external COM dlls.
On the surface, everything seems to be running smoothly and the the
application runs without any errors. However, I am not completely satisfied
by my implementation.
I basically used a software that generates an msi file quite easily and
included the two dlls in my package. I then edited the msi file using orca,
and forced the dlls to self register by...
| |
by: Luther Hert |
last post by:
I solved my problem, but I am not sure whether or not I
understand how I arrived at the solution. I leraned about
and checked:
IIS> creating virtual directories> configuring web
extensions > AspNet installation> and installing the
lcoalhost web site.
When I used Aspnet_regiis.exe to repair IIS Mappings for
Asp.Net, my c:\drive directory was altered.
|
by: penguin732901 |
last post by:
What do experienced programmers find the most efficient way to handle
user settings.
Currently I have 4 tables which allow various clients to customize my
program to work for them, tblAcademicSettings (fields),
tblBillingsettings (32 fields), tblGraphical (23 fields), tblOwner (33
fields).
There is one record for each table. Admittedly, some of the fields
never change once set up, but many are there to allow the user to make
|
by: MLH |
last post by:
I'm using Albert Kallall's code to set printers in A97.
I find that on some machines, the code locks up
and on others, it does not. I would like to overcome
this and was wondering about the experiences of
others who attempt to set default printer in A97?
I have an app running on an XP home edition box
fine. Same app running on XP Professional fails
when SetDefaultPrinter() is called.
|
by: Bob Alston |
last post by:
Can anyone tell me what are the files required for Replication manager
and registry entries required?
I think I read that there are 7 files and 3 registry entries but no
specifics.
I have Replication Manager installed on one server. It works fine.
The replication manager files are located in
c:\program files\common files\microsoft shared\database replication\
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |