REPOSTING MY PROBLEM PLEASE HELP

A

AM

I have database which have attached add-ins written by me. My problem is
that how can I use public variables in Add-ins(CodeDB) which is defined in
current Database(CurrentDB).

Any Help Appreciated


Thanks

Am
 
D

Dirk Goldgar

I have database which have attached add-ins written by me. My problem
is that how can I use public variables in Add-ins(CodeDB) which is
defined in current Database(CurrentDB).

Any Help Appreciated


Thanks

Am

I'm not sure, but I think you may have to provide public functions in
the add-ins that set or return the values of the variables.
 
A

AM

Dear Dirk

Thanks for reply

Its not possible for me to do this because I cannot replce my original
Database as many installation has been done. Now suppose I have company Name
or etc save in Public Variable define in currentdb Now How I can use then in
my code defune in Add-ins i.e. CodeDB

Thanks
 
6

'69 Camaro

Hi, Am.

You're trying to put the cart before the horse. You will have to replace
the original database that you've already published with an updated version
that provides for this feature, or you will have to create and distribute a
utility that alters your already published database, or you are going to
have to skip this feature.

Unless you've already put a public interface on that public variable that's
defined and set in the current database (the one that you've already
published), then other databases and applications won't be able to retrieve
that value.

By public interface, I mean a public getCompanyName( ) function in a
standard module, or a value set in a specific control on a specific form, or
a value stored in a table, or a custom database property, or *something*
that can be an output value from the current database. Any of these
examples would have to be defined in the current database, which can then be
controlled programmatically from the Add-in database.

If you haven't already provided this functionality in the current database
and you really, really need it, then you'll have to update the database file
and then redistribute it to your customers. Either that or you'll have to
create a utility that adds one of the examples above of the functionality
you need to retrieve the global variable, and then distribute that utility
(with instructions) to your customers to alter your already published
database.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Any human can read my reply E-mail address and should alter it so that a
message will be forwarded to me. Spammers are free to use my UNALTERED
reply E-mail address. I will *never* get those messages!)
 
A

AM

Dear Gunny

Thanks very Much for your Detail Brief.

Really I convinced with your reply & do the adviced solution.

Thanks for your support

Am
 
6

'69 Camaro

You're welcome! Good luck, Am. It's really hard to program Add-ins.
That's why most people just stick with regular databases, but a good Add-in
is worth its weight in gold for increasing productivity.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Any human can read my reply E-mail address and should alter it so that a
message will be forwarded to me. Spammers are free to use my UNALTERED
reply E-mail address. I will *never* get those messages!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top