Okay, I'm definitely an Access rookie, but I have kind of a unique problem I've been unable to solve. There is a public master database with a bunch of tables and data in it being maintained by another group. My boss wants to skim some information from this, add some of his own information to it, and save it in a completely separate .mdb file on our server.
I've used Access to link to the public database, built a custom table just for us, and built a form. The form uses bound controls on the left side to pull in data from the public database, and unbound controls on the right side for user entry of data. I coded a VBA save button that should save all controls (bound/imported as well as unbound/data entry) to our local table.
The unbound controls save just fine, but the bound controls are missing from the table. A new row is created with no problems, I get no error messages, but half the fields in the table are just blank.
Code:
DoCmd.GoToRecord , , acNewRec
Dim Rs As Recordset
'Dim SDB As Recordset
'Dim strSQL As String
Set Rs = CurrentDb.OpenRecordset("Supervisor Table", dbOpenDynaset)
Rs.AddNew
Rs![TestNo] = Me.TestNo
Rs![TestTitle] = Me.TestTitle
Rs![RevNo] = Me.RevNo
Rs![Comment] = Me.Comment
Rs![Added_By] = Me.Added_By
Rs![Comment_Date] = Me.Comment_Date
Rs![ResponsibleEngineer] = Me.ResponsibleEngineer
Rs![TestWriter] = Me.TestWriter
Rs![CP_Required] = Me.CP_Required
Rs![Priority] = Me.Priority
Rs![Due_Date] = Me.Due_Date
Rs![Additional_Comments] = Me.Additional_Comments
Rs.Update
Rs.Close
Set Rs = Nothing
Any idea what the problem is here? Do I need different VBA commands? Any help would be greatly appreciated, because this is the last show-stopping bug I've got. Thanks!