Hi all, I have been using the code below to create new records in an MS Access table called dbo_suppliercontact, and this has been working fine. Last week, we moved this table onto our works SQL server, so everyone can access it. I am able to link the table to my Access project via ODBC, and i am able to read the table ok. The Problem is when i attempt to create a new record, the code bums out at rst!.Addnew. Could someone kindly advise how i need to modify the code to allow me to write to the SQL server "dbo_suppliercontact" table. The IT guys have checked the table on the sQl server and say i have full write permission to it.
Thanks
**********************
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("dbo_SupplierContact")
rst.AddNew
rst!Supplier = Supcode
rst!Emailaddress = Emailad
rst!CopyAddress = CopyAd
rst!BlindAddress = BlindAd
rst.Update
Set rst = Nothing
Set qd = Nothing
Thanks
**********************
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("dbo_SupplierContact")
rst.AddNew
rst!Supplier = Supcode
rst!Emailaddress = Emailad
rst!CopyAddress = CopyAd
rst!BlindAddress = BlindAd
rst.Update
Set rst = Nothing
Set qd = Nothing