Solved

Creating Table in Access - Best Practices

Posted on 2014-04-15
7
407 Views
Last Modified: 2014-04-15
Hello,

When I am creating tables to store data – for example product specific in a table – what are some good or best practices I need to do in the Field Properties > General for all the fields within a table?
Please suggest what best practices you have learnt from past experience.
0
Comment
Question by:Rayne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Author Comment

by:Rayne
ID: 40002429
0
 

Author Comment

by:Rayne
ID: 40002433
Settings some good to have field properties for maintaining the  data within the table in the long run
0
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40002465
1. Choose the appropriate data type.   ie. don't store a number in a text field.
2. Use the comment field to indicate what your using the field for.
3. Set the Caption field, even if it is the field name.
4. Make sure you set the required and allow zero length string as appropriate.
5. For field names, do not use any reserved character or word  ie. Desc is bad for a field name, because that is used for a descending sort.   'Date' is a function name in VBA.

Jim.
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:Rayne
ID: 40002518
Thank you Jim,

That’s a GOLD. One question>
3. Set the Caption field, even if it is the field name.
If I set up caption in the table and then create a form out of it, then will the form display that caption I originally set in the source table? Also why would need a caption?

Thank you
0
 
LVL 58
ID: 40002559
If you set the caption, it will be picked up when creating a control based on the field.

As for why, you might have a field such as SSNum, but want it displayed as Soc Sec #

# in a field name being bad because it's a date delimiter, so you don't want it there, but might for the caption.   Or "EmpID" might be "Emp ID" for the caption.

Jim.
0
 
LVL 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40002566
Assuming by the way that you know that embedded spaces in field names and/or any special characters is not a good idea.

Jim.
0
 

Author Comment

by:Rayne
ID: 40002609
This is perfection to the ultimate, thank you :)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

707 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