Results 1 to 6 of 6
  1. #1
    tubar is offline Novice
    Windows XP Access 2002
    Join Date
    Jul 2009
    Posts
    5

    new record open form

    one the first form the user creates a record (recording artist). the second form is a data entry form that the user inputs data to except the field recording artist, which has been already filled out.

    its like i need a "refresh" after creating the new record and before opening the second form...can someone help

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You probably need to save the record:

    If Me.Dirty Then Me.Dirty = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tubar is offline Novice
    Windows XP Access 2002
    Join Date
    Jul 2009
    Posts
    5
    i used the following code but got a new record on the following form

    Private Sub Command6_Click()
    On Error GoTo Err_Command6_Click

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "INPUT RECORDING ARTISTS"

    If Me.Dirty Then Me.Dirty = False
    stLinkCriteria = "[RecordingArtistName]=" & Me![ID]
    DoCmd.OpenForm stDocName, , , stLinkCriteria

    Exit_Command6_Click:
    Exit Sub

    Err_Command6_Click:
    MsgBox Err.Description
    Resume Exit_Command6_Click

    End Sub

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    First, what is the Data Entry property of INPUT RECORDING ARTISTS? Second, those two fields don't look compatible based on the names (RecordingArtistName & ID); are they the same data?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    tubar is offline Novice
    Windows XP Access 2002
    Join Date
    Jul 2009
    Posts
    5
    1. is set to no and 2. yes they are the same data. ID refers to the id of the artist name

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Then I don't see why it's not working. Can you post the db?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. If record does not exist, open add new record form
    By RobertIngles in forum Programming
    Replies: 2
    Last Post: 02-01-2011, 08:47 AM
  2. Replies: 1
    Last Post: 11-30-2010, 10:05 AM
  3. Open form which creates new record
    By mjhopler in forum Forms
    Replies: 7
    Last Post: 02-09-2010, 01:37 PM
  4. Open form to current record
    By rbpd5015 in forum Access
    Replies: 1
    Last Post: 08-28-2009, 01:53 AM
  5. Replies: 4
    Last Post: 03-24-2009, 09:07 PM

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