PC Review


Reply
 
 
Toxalot
Guest
Posts: n/a
 
      22nd Jul 2007
I'm creating an application in Access 2003 using VBA, JET, ADO. I'm
fairly new to this world. I come from a php background.

There is some data that will rarely if ever change. For example, a
list of province names and two letter codes. I need to use this list
in several different places in the application. Sometimes, I may need
to get the name from the code. Sometimes I may need to populate a
combo box. I have several static lists like this.

What is the best way to store this data? Global variables, tables,
files?

I will also need to store the location of the backend file. I'm
thinking that the first time the user runs the app, it will show a
file browse box. Then the file they select will be remembered for next
time.

Jennifer

 
Reply With Quote
 
 
 
 
Baz
Guest
Posts: n/a
 
      22nd Jul 2007
Create a table which has the two-letter code as the primary key and the
province name in another field. Most relational database have lots of
tables for this kind of data. With the data in a table you can easily use
it as the record source for combo and list boxes, and you can join it to
other tables in queries.

"Toxalot" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm creating an application in Access 2003 using VBA, JET, ADO. I'm
> fairly new to this world. I come from a php background.
>
> There is some data that will rarely if ever change. For example, a
> list of province names and two letter codes. I need to use this list
> in several different places in the application. Sometimes, I may need
> to get the name from the code. Sometimes I may need to populate a
> combo box. I have several static lists like this.
>
> What is the best way to store this data? Global variables, tables,
> files?
>
> I will also need to store the location of the backend file. I'm
> thinking that the first time the user runs the app, it will show a
> file browse box. Then the file they select will be remembered for next
> time.
>
> Jennifer
>



 
Reply With Quote
 
Peter Hibbs
Guest
Posts: n/a
 
      22nd Jul 2007
Jennifer,

For the second part of your question see :-

http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='BE_ReLink.mdb'

HTH

Peter Hibbs.

On Sun, 22 Jul 2007 05:12:04 -0700, Toxalot <(E-Mail Removed)> wrote:

>I'm creating an application in Access 2003 using VBA, JET, ADO. I'm
>fairly new to this world. I come from a php background.
>
>There is some data that will rarely if ever change. For example, a
>list of province names and two letter codes. I need to use this list
>in several different places in the application. Sometimes, I may need
>to get the name from the code. Sometimes I may need to populate a
>combo box. I have several static lists like this.
>
>What is the best way to store this data? Global variables, tables,
>files?
>
>I will also need to store the location of the backend file. I'm
>thinking that the first time the user runs the app, it will show a
>file browse box. Then the file they select will be remembered for next
>time.
>
>Jennifer

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why this web config cannot reference an external config file? dh Microsoft C# .NET 0 2nd Oct 2009 12:12 AM
encrypting config file that aren't web config files... Ollie Riches Microsoft ASP .NET 1 4th Dec 2008 04:59 PM
Wiring up an App.Config file - deploying the App.Config file dbuchanan Microsoft Dot NET 12 27th Jul 2007 05:33 PM
sharedListeners config in app.config file doesn't recognize customlocation attribute RJ Microsoft Dot NET 0 1st Nov 2006 08:48 PM
using ReadXml to read exe.config file into Grid and update the exe.config using WriteXml hazz Microsoft C# .NET 0 7th Jul 2006 10:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 AM.