开发者

Error: Cannot got to specified record. Access 2007 and SQL 2005

I have inherited an Access 2007 database that has been split so the tables are on a SQL 2005 server.

The database consists of 3 tables and 3 forms. The main form that is used reads and writes to all 3 tables. Data can be edited and deleted OK but trying to add a new record throws an error saying, "You can't go to the specified record"

The code for the new record button is an embedded macro with the follow parameters:

  OnError Next,
  GoToRecord ,,New,
  [MacroError]<>0 MsgBox =[MacroError].[Description],Yes,None,

Any advice would be greatly appreciated

Thanks,

开发者_开发知识库Amy


Check whether all required fields of the record are present when you do the insert or if the constraints are met (such as having a duplicate value for a field that does not allow duplicates).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜