It may be the cursor type. You could try:
rs.open "SELECT * FROM complaint_table", connect,2,3
Can't remember the constant names.
Main Topics
Browse All TopicsHi all,
Posting here for a friend. Ive poured over this for a while now, but cant for the life of me find out what is wrong with it. It works on an empty table but not on a table with records already in it. Any help will be much appreciated.
Dim dbname, cnpath, connStr
dbname = "complain.mdb"
cnpath = "DBQ=" + Server.mappath(dbname)
connStr = "DRIVER={Microsoft Access Driver (*.mdb)}; " + cnpath
on error resume next
set connect = Server.CreateObject("ADODB
connect.open(connStr)
set rs = Server.CreateObject("ADODB
rs.open "SELECT * FROM complaint_table", connect, adOpenForwardOnly,adLockOp
rs.AddNew
rs("complaintNumber") = request.form("complaint_nu
rs("dateReceived") = request.form("date_receive
rs("weekNumber") = request.form("week_number"
rs("product") = request.form("product_cate
rs("useByDate") = request.form("use_by")
rs("department") = request.form("department")
rs("productState") = request.form("product_stat
rs("retailer") = request.form("retailer")
rs("storeName") = request.form("store_name")
rs("Brand") = request.form("brand")
rs("complaint") = request.form("complaint_sp
rs("complainantDetails") = request.form("cust_details
rs.Update
rs.close
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Cheers guys, you were a great help. I only had access to the code posted above so apologies for not posting more info on the problem. Anyways your suggestions have done the trick and my friends now a happy bunny.
The asp installation wasnt set up correct either so there were no error messages available. All is well now.
Thanks again :D
Matt
Business Accounts
Answer for Membership
by: AzraSoundPosted on 2003-11-14 at 08:35:21ID: 9749061
Is complainNumber set as an index that does not allow duplicates? Is it possible you aren't assigning a different number value for this, or other similar field?