Immediately after I add a new record into a SQL-linked table from my Access 2016 front end, an ODBC error message pops up and all data in the table turns to #Name?
This is a merge-replicated database.
The record DOES get successfully inserted prior to the error, I can see it after I close and re-open the table. Existing records can also be edited and deleted. The only problem is that after a new record is added, the ODBC is dropped with an Invalid Cast Specification (#0) error. It doesn't make sense that I'm putting invalid data in, because the new record is inserted with all data intact exactly how I entered it. I just have to close and reopen the table to view the new data.
I'm on week two of dealing with this and I feel like I've tried everything. I cannot have the system generate an error every time a new record is added in this specific table. All other tables in the database are fine.
Here is my table layout:
CREATE TABLE [dbo].[TrnRegistration](
[fkClassSchedID] [int] NULL,
[fkCompanyID] [int] NULL,
[NumberUsers] [int] NULL,
[Notes] [nvarchar](max) NULL,
[Contact] [nvarchar](50) NULL,
[fkUserTypeID] [int] NULL,
[fkOrderTypeID] [int] NULL,
[OrderRef] [nvarchar](50) NULL,
[FloatClassID] [int] NULL,
[LocFrstID] [int] NULL,
[LocScndID] [int] NULL,
[SalesRep] [int] NULL,
[RegistrationID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[VerifDate] [bit] NOT NULL DEFAULT ((0)),
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [MSmerge_df_rowguid_8C3233BCD5FB4C7AA23281E8C482C778] DEFAULT (newsequentialid()),
CONSTRAINT [TrnRegistration_PK] PRIMARY KEY NONCLUSTERED
(
[RegistrationID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]