nevets2001uk
IS-IT--Management
We have an access database here split into a frontend and backend system. I've just migrated the backend to SQL and relinked the tables in the front end.
All seems fine with most of the forms. Data is being read from the SQL database without a problem.
However I'm getting a number of issues that I can't for the life of me solve.
The front end has a button that allows the user to add a new record. It uses the code...
DoCmd.GoToRecord,, acNewRec
Clicking this results in the error "You can't go to the specified record. You may be at the end of the recordset"
So I tried opening the linked table directly and at first I can see the data and the fields. However I try to view the last record and I then get the error...
"The field is too small to accept the amount of data you are attempting to add. Try inserting or posting less data"
Then all the fields show as #Name?
A couple of suggestions I found where to change all smalldatetime fields to simply datetime, which I've done and also to change the text type (ex. memo field in access) to varchar(8000). Neither of these have corrected the problem. I can't understand why I can view the data at first but move to later records causes a problem. In SQL the last records all look okay and I can add a record manually.
Any suggestions on this issue would be most welcome as I've tried all the ideas I can think of!!
Cheers,
Steve G (MCP)
All seems fine with most of the forms. Data is being read from the SQL database without a problem.
However I'm getting a number of issues that I can't for the life of me solve.
The front end has a button that allows the user to add a new record. It uses the code...
DoCmd.GoToRecord,, acNewRec
Clicking this results in the error "You can't go to the specified record. You may be at the end of the recordset"
So I tried opening the linked table directly and at first I can see the data and the fields. However I try to view the last record and I then get the error...
"The field is too small to accept the amount of data you are attempting to add. Try inserting or posting less data"
Then all the fields show as #Name?
A couple of suggestions I found where to change all smalldatetime fields to simply datetime, which I've done and also to change the text type (ex. memo field in access) to varchar(8000). Neither of these have corrected the problem. I can't understand why I can view the data at first but move to later records causes a problem. In SQL the last records all look okay and I can add a record manually.
Any suggestions on this issue would be most welcome as I've tried all the ideas I can think of!!
Cheers,
Steve G (MCP)