A number of problems here
Problem 1: Geocities does not allow write access to your directory from the users computer. Therefore when they view the page, there is no way for them to write to the mdb so therefore no data can be put in it.
Problem 2: I cannot give you a code snippet to do the above for exactly that reason. Do implement database access you need to have some sort of server side interaction such as ASP or PHP. Geocities does not provide this.
Got to
http://<a rel="nofollow" href="http:...p4free.com</a> for free hosting that support asp and databases.
You can also search for hosting +asp as there are many other free sites out there that support db access
Regards