Solved

Creating Table in Access - Best Practices

Posted on 2014-04-15
7
400 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
  • 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 57

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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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 57
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 57

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

813 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

14 Experts available now in Live!

Get 1:1 Help Now