Results 1 to 4 of 4
  1. #1
    blue4512 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    26

    Question linked fields


    I have a form where I have event macros to link to other forms. However I cannot get the macro to work on date fields - any ideas?

  2. #2
    wdrspens is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    35
    More information required.
    On which event is the macro set up?

  3. #3
    blue4512 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    26
    on double click

  4. #4
    wdrspens is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    35
    Have you tried some vba code instead? This works with me:
    Private Sub OpenAll()
    If Me.Dirty And Nz(Me![RequiredField], "") <> "" Then DoCmd.RunCommand acCmdSaveRecord 'All one line where [RequiredField] is a must have field.
    If IsNull(ID) Or ID = "" Then
    DoCmd.OpenForm "FormName", acNormal, , , acFormAdd
    Else
    DoCmd.OpenForm "FormName", , , "ID = " & ID
    End If
    End Sub

    I then call the sub routine from the on double click event of each of the fields, including the date fields, and the form is opened.
    Good luck

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

Similar Threads

  1. Replies: 1
    Last Post: 04-25-2011, 12:36 PM
  2. Replies: 2
    Last Post: 08-22-2010, 07:59 PM
  3. Replies: 5
    Last Post: 03-20-2010, 08:30 AM
  4. Auto-updating fields in linked tables?
    By Leelers in forum Database Design
    Replies: 27
    Last Post: 01-08-2010, 06:23 PM
  5. help with linked tables
    By davidoakley in forum Access
    Replies: 9
    Last Post: 06-17-2009, 05:23 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