Results 1 to 3 of 3
  1. #1
    Join Date
    May 2013
    Posts
    19

    Retreive Blank Form upon Record Entry

    I have code that is executed with the click of a button to enter a new response using 2 fields to differentiate the records: a combobox "cboSrvID" and a textbox "RspnsName". I have a different set of questions for each value in the cboSrvID. Upon selecting my button the record is saved correctly although I would like it to open the blank form associated on the subform "sfrmSurveyResponses" when pushed. I have tried some DoCmd.FindRecord and DoCmd. GoTo functions to try and retreive the last acLast RspnsID inputted. So far I have had no luck.

    Does anyone have any suggestions? I wish I could post the database but it is fully populated with confidential data. If further clarification is needed I will do my best to explain.

    Any help would be greatly appreciated.



    Below is the code for the onClick action of my button.

    Thank you

    Code:
    Private Sub cmdEnterResults_Click()
        DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
        DoCmd.SetWarnings False
        DoCmd.OpenQuery "qappNewResponses"
        Me![sfrmResponses].Requery
        
        End Sub

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Are you using a form/subform arrangement? Master/Child links properties of subform container control will synchronize the parent and related child records of the mainform and subform.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Join Date
    May 2013
    Posts
    19
    Yes it is a form/subform arrangement. I have the forms synchronized with the RspnsID a primary key generated by Access for every new entry.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-10-2013, 11:58 AM
  2. Replies: 3
    Last Post: 03-09-2013, 10:39 AM
  3. Replies: 1
    Last Post: 10-27-2012, 06:42 AM
  4. Replies: 4
    Last Post: 08-14-2012, 07:14 AM
  5. blank on entry on add a record form
    By gmee in forum Forms
    Replies: 1
    Last Post: 10-07-2009, 07:31 AM

Tags for this Thread

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