Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    100

    Unanswered: detect if form is open or not

    hello,

    how can I detect if a form is already open ? The following doesn't work:


    If Not IsNull(Forms("NAVIGATION")) Then
    DoCmd.OpenForm stDocName, , , stLinkCriteria
    Else
    DoCmd.Close
    End If

    Regards,
    Proximus

  2. #2
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> 0 Then
    If Forms(strFormName).CurrentView <> 0 Then
    IsFormLoaded = True
    Else
    IsFormLoaded = False
    End If
    End If

  3. #3
    Join Date
    Dec 2002
    Location
    Glasgow, UK
    Posts
    100
    currentproject.allforms("NAVIGATION").isloaded = true
    Access XP & WinXP Pro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •