Results 1 to 7 of 7
  1. #1
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130

    Question Can't go to specified record...

    Private Sub Form_Load()
    On Error GoTo Form_Load_Err
    DoCmd.GoToRecord acForm, "frmAddDevices", acNewRec
    Form_Load_Exit:
    Exit Sub


    Form_Load_Err:
    MsgBox Error$
    Resume Form_Load_Exit
    End Sub

    This is the the code that is ran only when the specified form is opened. It did not occur until I changed the model field from manual entry to a combobox.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Well, acForm is not a valid parameter for DoCmd.GoToRecord! Try replacing it with acDataForm and see what happens.

    Or even simpler

    DoCmd.GoToRecord , , acNewRec

    If you keep getting the same error message, you've probably done something to make the Form Read-Only. Can you edit a Record, or create a New Record, using the native nav buttons on the Form?

    Linq ;0)>

  3. #3
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130
    The new record option is greyed out on the navigation bar when I enable it. Let me try to change what you said and see what I get.

  4. #4
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130
    Still same message. Allow additions is set to Yes. RecordSet Type is set to Dynaset. Not sure what else to check to make sure that it is not set to read only.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Can you edit an existing Record? If not then obviously something changed when you changed the model field's Control from a Textbox to Combobox.

    Linq ;0)>

  6. #6
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130
    Yea. It is saying this recordset is not updateable. Should I just create a new form and see if I can get it to work?

  7. #7
    Voodeux2014 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Slidell, LA
    Posts
    130
    Ok. So it seems to be something with the tbl1Devices table. I have it linked front the _be of the database. When I open the table in the BE it is fine. Opening it on the front end will not even let me manually add a record to the table. Any ideas?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-03-2013, 10:02 AM
  2. Replies: 3
    Last Post: 03-09-2013, 10:39 AM
  3. Replies: 2
    Last Post: 12-21-2012, 01:57 PM
  4. Replies: 3
    Last Post: 08-26-2012, 10:04 PM
  5. Replies: 14
    Last Post: 05-25-2012, 02:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums