Actually, Big, you almost never have a field with data in it that separated by a comma. If what people put down in the book is (for example) date, name, address, phone, and e-mail then your simplest table would look something like this
tblVisitors
lngID, type LONG, autonumber
dtmDOV, type DATE/TIME (DOV means Date of Visit)
strLastName, type TEXT
strFirstName, type TEXT
strAddress1, type TEXT
strAddress2, type TEXT
strState, type TEXT
strZIP, type TEXT
strPhone, type TEXT
strEmail, type TEXT
Names should be separated by first and last name, not stored together.
The address fields (two of them in case their addresses take up two lines) are text and those can have punctuation. Some people even separate out the numerical part of the address in its own field, but my preference is NOT to do that.
The phone and ZIP code fields are text because you're not going to perform mathematical operations on them. Any field (even if it holds numbers) that you do not do math on usually should be type TEXT. Believe it or not it makes formatting them easier, especially if leading zeroes are involved, e.g. NJ ZIP codes start with 0.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|