Advertisement

10.02.2008 at 07:18AM PDT, ID: 23781646
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Updating SQL 2005 table via Access 2003 ADP form

Asked by Adlerm in Microsoft ADP, Microsoft Access Database, MS SQL Server

Hi all - I recently converted an Access 2003 mdb database to an Access.adp(2003)/SQL 2005 client/server set up. I'm trying to add a new record to an underlying SQL 2005 table via a form in the client side Access.adp database.
The form  has a view as its record source, the view is based on a single SQL table and the record in the table has a datetime field.
The form in question displays the current information from the SQL 2005 table and has an Add button on it so when the users wants to add a new record s/he simply clicks on the Add button which executes an After Click event to execute the following function code

               Function AddData(frm As Form) As Integer
                             Call ToggleEditMode(frm)
                             frm.DataEntry = True
                             DoCmd.GoToRecord , , acNewRec  <======  Error the system is complaining about
                            frm.CmdEdit.Caption = "&Done"
               End Function

This code is basically to set up the form - in Edit Mode - ie to allow all fields on the form to be written to -
but unfortunately when this code is executed I get the following message

                     Runtime error 2105
                     You can't go to the specified record
and stops on the line of code indicated above..

I have no idea why this is happening BECAUSE I have the same objects (forms, reports, modules etc) in an Access.mdb front end connected to the same SQL 2005 Server database EXCEPT that the SQL tables and views are linked via an ODBC connection and everything works as expected. What am I doing wrong? Surely I'm not the first person on the planet wanting to update an SQL 2005 table via an Access.adp front end form.  
I have also noticed that the add record selector (> *) is greyed out when the form is loaded in the Access.adp database but is not greyed out when loaded in the Access.mdb ODBC connected database.
Any thoughts/suggestions as to how I can fix the Access.adp approach would be greatly accepted.
 
Start Free Trial
[+][-]10.02.2008 at 07:29AM PDT, ID: 22624550

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.02.2008 at 11:53PM PDT, ID: 22631615

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.03.2008 at 05:05AM PDT, ID: 22632968

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.03.2008 at 10:55PM PDT, ID: 22639773

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft ADP, Microsoft Access Database, MS SQL Server
Sign Up Now!
Solution Provided By: Adlerm
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628