Solved

.mdb by visual database manager

Posted on 1998-12-18
7
267 Views
Last Modified: 2010-05-03
Hi

I think Visual Database Manager in VB5 can create and edit a .mdb file. However, after open the add in, I just can not go through the way.
Can you give me the instructions showing the step by step to create a most simple .mdb file with a table?

Victor
0
Comment
Question by:victorlong
  • 4
  • 3
7 Comments
 

Author Comment

by:victorlong
Comment Utility
Edited text of question
0
 
LVL 5

Accepted Solution

by:
mayhew earned 80 total points
Comment Utility
On the menu select File|New|Microsoft Access|Version x.0 MDB ...

It will ask you where you want to save your new table in a dialog box.  Name your table and save it.

This will bring up "Database Window" and "SQL Statement" windows.  In "Database Window" you'll see a "Properties" field.  Right click on it and select "New Table" from the popup menu.

Then you can type in a table name.  You can press the "Add Field" button to bring up an edit screen for each field you want to add.  You can also create indexes in the bottom part of this window.

When you're done, press the "Build the Table" button and you're set.

Hope this is helpful!  :)

Don
0
 

Author Comment

by:victorlong
Comment Utility
Hi Mayhew

Yes, I got it by following your instruction. Thank you for your help.

Can you help me more? Can you explain what is the index works and what is it for? (I have increase the point a litile bit.)

Cheers.

Victor
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 5

Expert Comment

by:mayhew
Comment Utility
Hey Victor,

I'm glad that helped!

For the index, I'm not quite understanding your question.  Are you wondering what an index is?  Or how to create one using the Visual Data Manager?  Or something else?

Let me know and I'll be happy to answer your question.  :)

Don
0
 

Author Comment

by:victorlong
Comment Utility
Hi Mayhew

I agree my question was not very clear since I don't understand index :-)
Can you begin your explanation at why we need index in the table? Then, may be teach me by an example showing the benefit of using index in the table. Or tell me anything you think may help me understan what is the index in the table and why we need that.

Am I asking too much?

Cheers.

Victor
0
 
LVL 5

Expert Comment

by:mayhew
Comment Utility
Hi Victor,

Sorry for the long delay.

Basically, an index is used to improve performance, eg. to make searches go quicker.

When you create an index, you create it for a field or combination of fields that you will be searching on.  For example, in an address book application, you might create an index on a last name field, or a phone number field because those are fields that you typically search on.

I'm not sure of the mechanics for SQL Server or Access, but I can give you a pretty good idea of what's going on in terms of DBase.  Even if the exact process is not the same for MS products, the concept will be similar.

Let's say that you have the following table in DBase:
Name char(15)

with the following data:
Fred
Bob
Hal
Chris

Notice that the records were not entered in alphabetical order.  If you wanted to find the record with a name of 'Chris' you would have to start at the beginning of the table and search through every record until you got to Chris.  For a large table, this can take a lot of time.

(Keep in mind this is an oversimplification)   :)

When you create an index on the <name> field, DBase will create an index file that has sorted pointers to the information in your table.  For example, it might assign the number 1 to Fred, 2 to Bob, 3 to Hal, and 4 to Chris.  Then it would sort them by name and store the numbers in the index file.

For this example your index file would then look something like:
2
4
1
3

Now that the index exists, if you wanted to do a search for the 'Chris' record, you'll end up going through less records because the database engine will use a search algorithm that can take advantage of the fact that your data is sorted.  Thus, your searches will take less time.

You might have heard of 'rebuilding an index'.  What this means is that if new data is entered, (for our example let's say we add 'Al' to our table) that data has to be sorted into the index.

Now our index would look like:
5
2
4
1
3

While indexes will generally improve the performance of a large database, they do increase overhead.  So you need to be careful not to 'over-index' your tables.  Some guidelines to follow are:

Only use indexes on fields that you will be searching on frequently (like name or social security number).

Don't index a field with limited data, for example a boolean field.  You don't get enough increase in performance to justify the overhead.

I hope you find this helpful.  If you have further questions, please feel free to ask.

Don
0
 

Author Comment

by:victorlong
Comment Utility
Hi mayhew

> Sorry for the long delay.

You must have a very good New Year party :-)

>I hope you find this helpful.

Yes, that is a great help. I believe that I have understanded quite well. Thank you very much.

Victor.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now