Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
*Geek Talk & Media
Database Design question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Andre" data-source="post: 3542987" data-attributes="member: 25930"><p>I agree with MR, though I strongly recommend using an ID field as your primary key, instead of the customer's name. Why? Two people/companies can have the same name. You also don't have to remember if you keyed in the company as "The RPG Source" vs. "RPG Source".</p><p></p><p>That said, I would also strongly recommend some kind of customer lookup form. When using an arbitrary ID for customers, it's quite easy to enter the same customer more than once. Before creating a new customer, always pop up your customer search form and look for data that matches - name, address, phone, etc. - before creating the new record.</p><p></p><p>As for ensuring that you only display appropriate records, the simplest method is to base the form on a query, which is set up to only pull the records you want, for instance only customers with an active lease. A more flexible way is to create various filters on the form, so you can sort for "Active", "Inactive", "Past Due", or whatever other criteria you might be using. You can tie the filters to command buttons, if you don't have too many. Or you can create another form that has all the fields you want, then uses code to filter your main form when you click a command button.</p><p></p><p>I admit I'm fairly sloppy when designing db's. I start with what information I want out of the db, then work backwards to determine what fields I need, then group the fields into tables. Once I've created the table relationships (one of the most important steps), I then throw together some quick and dirty tables, forms, and data to test it. Once I've found the most obvious problems with my design, THEN I sit down and work up the real db. Not the best way, but for smaller db's, I find it works for me.</p></blockquote><p></p>
[QUOTE="Andre, post: 3542987, member: 25930"] I agree with MR, though I strongly recommend using an ID field as your primary key, instead of the customer's name. Why? Two people/companies can have the same name. You also don't have to remember if you keyed in the company as "The RPG Source" vs. "RPG Source". That said, I would also strongly recommend some kind of customer lookup form. When using an arbitrary ID for customers, it's quite easy to enter the same customer more than once. Before creating a new customer, always pop up your customer search form and look for data that matches - name, address, phone, etc. - before creating the new record. As for ensuring that you only display appropriate records, the simplest method is to base the form on a query, which is set up to only pull the records you want, for instance only customers with an active lease. A more flexible way is to create various filters on the form, so you can sort for "Active", "Inactive", "Past Due", or whatever other criteria you might be using. You can tie the filters to command buttons, if you don't have too many. Or you can create another form that has all the fields you want, then uses code to filter your main form when you click a command button. I admit I'm fairly sloppy when designing db's. I start with what information I want out of the db, then work backwards to determine what fields I need, then group the fields into tables. Once I've created the table relationships (one of the most important steps), I then throw together some quick and dirty tables, forms, and data to test it. Once I've found the most obvious problems with my design, THEN I sit down and work up the real db. Not the best way, but for smaller db's, I find it works for me. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
Database Design question
Top