Author
|
Topic: Microsoft access database question
|
|
|
AcidWarp
Sarge
Member # 997
Member Rated:
|
posted 05-17-2005 02:05 AM
quote: Originally posted by Drako: As a general rule, the data access pages autogenerated by Access suck sick hairy goat balls.
I could say the same thing about serverside configuration for Exchange. . . That being said I have nothing to contribute to this thread. I'm just here for comic relief. Meesa just glad mya voice not high and squeeky like tha Jar Jar Binkses. -------------------- “I have noticed even people who claim everything is predestined, and that we can do nothing to change it, look before they cross the road.” “Intelligence is the ability to adapt to change.” --Dr. Stephen Hawking.
Posts: 4363 | From: Waterloo, Ontario | Registered: Nov 1999 | IP: Logged
|
|
doublefresh
Sarge
Member # 26
Member Rated:
|
posted 05-17-2005 02:43 AM
www.building-zone.com/realdata.mdb This is the database I created. My server has mysql installed but I don't know much about mysql. It took me 5 or 6 hours just to figure out basic Access. I'd like to be able to have the database connected to the website so that: #1. People who fill out forms on the site have their info go straight to the database so I do not have to manually enter info after I recieve it in the mail. (Which is how I have my forms set up now) I also need some type of user interface for the database to generate mailing lists and e-mail lists to go to the selected recipiants as well as sort and graph data. The above access database would be nice to have on the internet because I work from three different locations on 4 different computers. It makes it much more convienient than burning disks everyday or e-mailing info to myself. We also have a cute young office wench who enters data for us and I would like to put in simple protection so she could not accidentally delete the whole thing. Any takers??? I'm happy to pay for your services. I should do it myself but it means I'll have to go off and buy an SQL book and actually read it and then spend a week screwing up before I get something that works marginally. I would not mind doing this if I were not already working 16 hours a day on other things. At the moment the site is generating five or six inquiries a day multiply that by a month and you get 150, multiply it by a year and you get 1800, add a few more years and this database could hit 5000 entries pretty quickly.
Posts: 1824 | From: USA | Registered: Jun 1999 | IP: Logged
|
|
|
|
doublefresh
Sarge
Member # 26
Member Rated:
|
posted 05-17-2005 03:10 AM
ErrorSQL-query : CREATE TABLE `contacts` ( `Time` VARCHAR NOT NULL , `firstname` TEXT NOT NULL , `last name` TEXT NOT NULL , `address` TEXT NOT NULL , `city` TEXT NOT NULL , `state` TEXT NOT NULL , `zip` TEXT NOT NULL , `home phone` TEXT NOT NULL , `Cell Phone` TEXT NOT NULL , `email address` TEXT NOT NULL , `home type` TEXT NOT NULL , `price` TEXT NOT NULL , `referred by` TEXT NOT NULL , `contact date` TEXT NOT NULL , `comments` LONGTEXT NOT NULL , PRIMARY KEY ( `Time` ) ) MySQL said: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL, `firstname` TEXT NOT NULL, `last name` TEXT NOT NULL, Back
Posts: 1824 | From: USA | Registered: Jun 1999 | IP: Logged
|
|
RoGuEBiTcH
Sarge
Member # 66
Member Rated:
|
posted 05-17-2005 10:00 AM
What's with the backticks (`)? Get rid of them. The varchar type declaration requires a length parameter, e.g. varchar(20). Field names can not contain spaces, e.g. referenced_by, not referenced by. Why the hell would you primary key the time? You probably want a datetime type for that field, anyway. The text field type is for large (1024 character+) clobs, it can not be indexed, and is slow to search. My guess is you want something more like this:create table contact( id int not null primary key auto_increment, name varchar(50) not null, email varchar(50) not null, street varchar(50), city varchar(20), state varchar(2), zip varchar(5), day_phone varchar(12), cell_phone varchar(12), home_type int, price decimal(10,2), notes text, reference varchar(50), created datetime not null ); I'd suggest you just take the time to learn this stuff for real, or go hire a professional. You're not going to be pleased with your results if you blindly hack your way through this on a need-to-know basis. -------------------- http://quake2world.net
Posts: 3123 | From: Naples, FL | Registered: Jun 1999 | IP: Logged
|
|
|
|
|
|
|
|