Okay, my company is currently updating everything to 2000. Therefore, I'm having to go in & change all my VB code from DAO to ADO to connect to Access 2000. Everything's been a breeze until the current code. I've changed my connection, removed my .Edit & .OpenRecordset references. Now the code compiles & all is fine until I get to where I am adding information into the database. I keep getting a 3265 "Item cannot be found in the collection corresponding to the requested name or ordinal." when I get to specific fields. It allows certain fields but not others. The field names are correct because I copied them directly from the database & they worked in DAO. I use the same syntax in other code & no problems. Not quite sure what to do now. Here is just a little bit of the code:
gdbTableO.AddNew
gdbTableO!OriginationDate = Date 'didn't like this one
gdbTableO!Acct = gAcct 'took this one
gdbTableO!FirstName = "Sue" 'didn't like this one
gdbTableO!LastName = "Smith" 'didn't like this one
gdbTableO.Update
Actually looking at it, it seems that the only thing the code recognizes the the primary key field which is the Acct field. Please help.
gdbTableO.AddNew
gdbTableO!OriginationDate = Date 'didn't like this one
gdbTableO!Acct = gAcct 'took this one
gdbTableO!FirstName = "Sue" 'didn't like this one
gdbTableO!LastName = "Smith" 'didn't like this one
gdbTableO.Update
Actually looking at it, it seems that the only thing the code recognizes the the primary key field which is the Acct field. Please help.