Skip to main content

AccessTr.neT


Alt Form İçinde Alt Form + İşaretinin Açılması

Alt Form İçinde Alt Form + İşaretinin Açılması

#10
Hocam windows 7  Access 2003 sendkeys yaşanan problemler için şöyle bir kod buldum size sormadan kullanmayayım dedim zaten nerede kullanacağımı anlamadım.
Kod:
If Nz(sQueryParams, "") <> "" Then
       MyParameters = Split(sQueryParams, "|", -1, vbTextCompare)
       
       If MyParameters(0) = "*UseQueryDef*" Then
           
       Else
           For nParameter = 0 To UBound(MyParameters)
            If Not init Then
       If IsDevEnv() Then
           IsIDEUnderVista = (OsVersion() >= 6)
           If IsIDEUnderVista Then Set WshShell = CreateObject("WScript.Shell")
       End If
       init = True
   End If
   
   If Not IsIDEUnderVista Then
       VBA.SendKeys MyParameters(nParameter) & "{Enter}"
   Else
       WshShell.SendKeys MyParameters(nParameter) & "{Enter}"
              ' SendKeys MyParameters(nParameter) & "{Enter}"
           Next
       End If
   End If
   

   
   'send some CR's if requested
   
   'Kris 20100823 - Send Keys fix
   
   For nLoop = 1 To nEnters
       
       'SendKeys "{Enter}", False
        If Not init Then
       If IsDevEnv() Then
           IsIDEUnderVista = (OsVersion() >= 6)
           If IsIDEUnderVista Then Set WshShell = CreateObject("WScript.Shell")
       End If
       init = True
   End If
   
   If Not IsIDEUnderVista Then
       VBA.SendKeys "{Enter}", False
   Else
       WshShell.SendKeys "{Enter}", False
   End If
   Next



Private Function IsDevEnv() As Boolean
  Dim x As Long
  Debug.Assert Not TestIDE(x)
  IsDevEnv = x = 1
End Function

Private Function TestIDE(x As Long) As Boolean
  x = 1
End Function

ielmacilar, 09-05-2010 tarihinden beri AccessTr.neT üyesidir.
Son Düzenleme: 30/08/2018, 10:33, Düzenleyen: ielmacilar.
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Cvp: Alt Form İçinde Alt Form + İşaretinin Açılması - Yazar: ielmacilar - 30/08/2018, 10:20