473,378 Members | 1,605 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,378 software developers and data experts.

Personal Library

675 512MB
I have several functions I want to use in various projects. How do I maintain 1 copy in a standard location, but available to all projects?
Feb 23 '09 #1
13 1984
ChipR
1,287 Expert 1GB
I believe you can keep a code module in a db, then import it to any new project.
Feb 23 '09 #2
ChipR
1,287 Expert 1GB
Or did you mean you want to avoid having to import?
Feb 23 '09 #3
FishVal
2,653 Expert 2GB
Hello, OldBirdman.

In the projects where those functions are desired to be available add a reference to that common mdb file.

Tools > References > [Browse ...] button and choose an appropriate mdb.

Regards,
Fish.
Feb 23 '09 #4
OldBirdman
675 512MB
I tried this, and the Browse... eventually wanted a *.olb;*.tlb;*.dll so didn't work. My functions might be
Expand|Select|Wrap|Line Numbers
  1. Public Function Max(varFirst as Variant, varSecond as Variant) as Variant
  2. If varFirst > varSecond then Max = varFirst else Max = varSecond
  3. End Function
This is a simplified example, so don't expand on the idea, I know about ParamArray, etc.
So I now have a project consisting of above function and similar ones. What next?
Feb 23 '09 #5
FishVal
2,653 Expert 2GB
:)

"*.olb;*.tlb;*.dll" are not the only file types available from "File types" dropdown list.

*.exe, *ocx, *.mdb, *.mde, *.mda, *.adp, *.ade and even *.* are available as well.

Regards,
Fish.
Feb 23 '09 #6
OldBirdman
675 512MB
Don't you ever sleep?
Thankx, I got it working. I somehow have never had the list of extensions not be correct, so I overlooked that I could choose others.
Feb 23 '09 #7
NeoPa
32,556 Expert Mod 16PB
I've learned something new from this one :)

I had no idea this was possible.
Feb 24 '09 #8
Dan2kx
365 100+
So if you make a DB full of functions and link in this way then you can just refer to them as norm!?

Is there any performance hit?

Dan
Feb 24 '09 #9
OldBirdman
675 512MB
I'm not concerned about performance, as these are primary to handle user input, and most users can't type over about 250 characters/minute. Any code to handle user interface is probably not optimum. If one of these were going to be called by a query with 100K+ rows, yes, then this would be an issue. But then again, I would probably be writing the function to specifically address the EXACT problem, not a general function.
Feb 25 '09 #10
puppydogbuddy
1,923 Expert 1GB
For anyone that is interested, here is a reference source:
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
Feb 25 '09 #11
NeoPa
32,556 Expert Mod 16PB
Hey pDog, Any idea why I might not have the Code Librarian installed on my PC? I tried to follow the instructions (I have full Office 2003 Pro installed BTW).
Feb 25 '09 #12
OldBirdman
675 512MB
Thanks puppydogbuddy, but that link, and subsequent ones from there lost me. I'll quit with post #6 as it does what I need.
We link tables all the time, and if there were a cost/efficiency issue with linking, it should have come up there.
Feb 25 '09 #13
puppydogbuddy
1,923 Expert 1GB
@NeoPa
I believe the Code Librarian is included with the Office XP Developers Productivity ToolKit, which is a separate download. The problem is there so many downloads, I would have to check them all out. see this link:

http://beqiraj.com/office/2003/developer/index.asp
Feb 25 '09 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
6
by: Randy Harris | last post by:
I wonder if I might get some of you to describe methods or tools that you've found effective to store and manage code snippets and routines. I don't have a particular need to share code with other...
2
by: Andrew Walsh | last post by:
Is it possible to create a Class Library Project using the personal edition of Visual Studio? Trying to change the Output Type on a project already created only shows Windows App and Console...
3
by: Chuck Conlow | last post by:
Greetings. I'm using the Personal (I think that's what it's called) edition of VS C# and I want to build a .dll, which is not an option presented in the IDE. I *think* I can build one from the...
2
by: Sergio T. | last post by:
Hi I would like to use PWS on a computer, and install one webservice on it, All of that on VB.NET Can I use Web Services with Personal web server? Thanks Sergio T
4
by: Marco | last post by:
Hi to All, I'm developing an application in VB .NET. I have a question: what is the best place to save personal settings of my users? I mean, when a user uses my application, it can create a...
4
by: rpm | last post by:
I have started using Personal Site Starter Kit with Visual Web Developer 2005. I realized that for the photo gallery portion, I can have an album set to be public or not. And if I set it not to be...
6
by: Zytan | last post by:
I ran through the VB Guided Tour some time ago. In particular, the "Managing Your Records: Using Data in Your Program" section: http://msdn2.microsoft.com/en-us/library/t25kbx0s(VS.80).aspx ...
2
by: Anil Gupte | last post by:
Why does System.Environment.SpecialFolder.Personal return "5"? How do I get the actual directory? Thanx, Anil Gupte www.keeninc.net www.icinema.com
2
by: Jonathan Wood | last post by:
I decided to give another go at getting the Personal Site Starter Kit working for me. I'd really love to get this working. But I've had nothing but trouble. Specifically, there are all sorts of...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.