Hi...
Please check this:
1. Have you make a DSN for your MS. access database?
2. in statement odbc_connect(), please use your DSN to connect, example:
odbc_connect('mymdbdsn','','');
3. After that, verify if you have been connected or not.
4. Check the structure of your mdb, focus on the field that you assigned it as "Key". Please note this, of course you cannot insert two or more records that have the same value in "key" field. So, if you want to check your code more than one time, please change your value, example:
try 1:"INSERT INTO table VALUES ('1','value 1')";
try 2:"INSERT INTO table VALUES ('2','value 1')";
assume that first field is the key.
or you can make a form first, then execute your code to insert record with your form.
- That's for now. Good Luck!!!