Skip to main content

AccessTr.neT


Şifreleme Ve Paylaşım

ferhat karagozlu
ferhat karagozlu
11
1785

Şifreleme Ve Paylaşım

#7
Resimlerinizi, Cevap sayfasında bulunan Resim Ekle butonu ile ekleyiniz.

Modüldeki kodların tamamını aşağıdaki ile değiştirirseniz modül 64 bit uyumlu olacaktır.

Option Compare Database

#If VBA7 Then

Private Declare PtrSafe Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long
Dim dwReturn As Long

Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1
Const SW_SHOWMINIMIZED = 2
Const SW_SHOWMAXIMIZED = 3

Private Declare PtrSafe Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long

#Else

Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long
Dim dwReturn As Long

Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1
Const SW_SHOWMINIMIZED = 2
Const SW_SHOWMAXIMIZED = 3

Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long

#End If

Public Function fAccessWindow(Optional Procedure As String, Optional SwitchStatus As Boolean, Optional StatusCheck As Boolean) As Boolean
If Procedure = "Hide" Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_HIDE)
End If
If Procedure = "Show" Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_SHOWMAXIMIZED)
End If
If Procedure = "Minimize" Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_SHOWMINIMIZED)
End If
If SwitchStatus = True Then
If IsWindowVisible(hWndAccessApp) = 1 Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_HIDE)
Else
dwReturn = ShowWindow(Application.hWndAccessApp, SW_SHOWMAXIMIZED)
End If
End If
If StatusCheck = True Then
If IsWindowVisible(hWndAccessApp) = 0 Then
fAccessWindow = False
End If
If IsWindowVisible(hWndAccessApp) = 1 Then
fAccessWindow = True
End If
End If
End Function
Cevapla
#8
(28/02/2020, 17:30)ozanakkaya yazdı: Resimlerinizi, Cevap sayfasında bulunan Resim Ekle butonu ile ekleyiniz.

Modüldeki kodların tamamını aşağıdaki ile değiştirirseniz modül 64 bit uyumlu olacaktır.

Option Compare Database

#If VBA7 Then

Private Declare PtrSafe Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long
Dim dwReturn As Long

Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1
Const SW_SHOWMINIMIZED = 2
Const SW_SHOWMAXIMIZED = 3

Private Declare PtrSafe Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long

#Else

Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long
Dim dwReturn As Long

Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1
Const SW_SHOWMINIMIZED = 2
Const SW_SHOWMAXIMIZED = 3

Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long

#End If

Public Function fAccessWindow(Optional Procedure As String, Optional SwitchStatus As Boolean, Optional StatusCheck As Boolean) As Boolean
If Procedure = "Hide" Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_HIDE)
End If
If Procedure = "Show" Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_SHOWMAXIMIZED)
End If
If Procedure = "Minimize" Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_SHOWMINIMIZED)
End If
If SwitchStatus = True Then
If IsWindowVisible(hWndAccessApp) = 1 Then
dwReturn = ShowWindow(Application.hWndAccessApp, SW_HIDE)
Else
dwReturn = ShowWindow(Application.hWndAccessApp, SW_SHOWMAXIMIZED)
End If
End If
If StatusCheck = True Then
If IsWindowVisible(hWndAccessApp) = 0 Then
fAccessWindow = False
End If
If IsWindowVisible(hWndAccessApp) = 1 Then
fAccessWindow = True
End If
End If
End Function
merhaba hocam

İlginize çok teşekkür ediyorum. Maalesef  yine gönderdiğim resimdeki uyarıyı veriyor.

[Resim: do.php?img=9776]
Cevapla
#9
5. mesaja eklediğim örnekte bu uyarıyı alıyor musunuz?
Cevapla
#10
(02/03/2020, 10:25)ozanakkaya yazdı: 5. mesaja eklediğim örnekte bu uyarıyı alıyor musunuz?
EVET HOCAM. DEDİĞİNİZ ŞEKİLDE KODU YAPTIŞTIRDIM. YUKARIDAKİ (KAYDETTİĞİNİZDEN VEYA ADINI DOĞRU YAZDIĞINIZDAN EMİN OLUN) UYARISINI VERDİ.
Son Düzenleme: 02/03/2020, 13:31, Düzenleyen: ferhat karagozlu.
Cevapla
#11
Ekli uygulama, 5.mesajdaki uygulamanın aynısı. Sadece 64 bit uyumlu olması için modüldeki kodlara ptrsafe eklendi.
.rar İLKE KARARLARI_sld_SON.rar (Dosya Boyutu: 48,99 KB | İndirme Sayısı: 4)
Cevapla
#12
(02/03/2020, 15:00)ozanakkaya yazdı: Ekli uygulama, 5.mesajdaki uygulamanın aynısı. Sadece 64 bit uyumlu olması için modüldeki kodlara ptrsafe eklendi.
HOCAM ÇOK TEŞEKKÜRLER, ELLERİNİZE, EMEĞİNİZE  SAĞLIK, SİSTEM TAM İSTENİLEN GİBİ ÇALIŞIYOR.  Friends
Cevapla

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

Yorum yapmak için üye olmanız gerekiyor

ya da