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
Solved

Creating Table in Access - Best Practices

Posted on 2014-04-15
7
401 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

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…
My experience with Windows 10 over a one year period and suggestions for smooth operation
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

828 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