اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

الردود الموصى بها

قام بنشر

السلام عليكم

اخواني عندي سؤالين

1- كيف الغي عمل مفتاح الشفت

2- عندي برنامج للاجازات عندما قمت بفتحه في جهاز اخر امر معاينة التقرير عند الظغط عليه لا يفتح و يتجمد البرنامج اين المشكلة هنا وشكرااا  

قام بنشر

السلام عليكم و رحمة الله تعالى و بركاته.

قم بإنشاء وحدة نمطية جديدة و ألصق بها الكود التالي:

Function ap_DisableShift()
'This function disable the shift at startup. This action causes
'the Autoexec macro and Startup properties to always be executed.

On Error GoTo errDisableShift

Dim db As DAO.Database
Dim prop as DAO.Property
Const conPropNotFound = 3270

Set db = CurrentDb()

'This next line disables the shift key on startup.
db.Properties("AllowByPassKey") = False

'The function is successful.
Exit Function

errDisableShift:
'The first part of this error routine creates the "AllowByPassKey
'property if it does not exist.
If Err = conPropNotFound Then
Set prop = db.CreateProperty("AllowByPassKey", _
dbBoolean, False)
db.Properties.Append prop
Resume Next
Else
MsgBox "Function 'ap_DisableShift' did not complete successfully."
Exit Function
End If

End Function

Function ap_EnableShift()
'This function enables the SHIFT key at startup. This action causes
'the Autoexec macro and the Startup properties to be bypassed
'if the user holds down the SHIFT key when the user opens the database.

On Error GoTo errEnableShift

Dim db as DAO.Database
Dim prop as DAO.Property
Const conPropNotFound = 3270

Set db = CurrentDb()

'This next line of code disables the SHIFT key on startup.
db.Properties("AllowByPassKey") = True

'function successful
Exit Function

errEnableShift:
'The first part of this error routine creates the "AllowByPassKey
'property if it does not exist.
If Err = conPropNotFound Then
Set prop = db.CreateProperty("AllowByPassKey", _
dbBoolean, True)
db.Properties.Append prop
Resume Next
Else
MsgBox "Function 'ap_DisableShift' did not complete successfully."
Exit Function
End If

End Function

خلف زر تعطيل مفتاح الشيفت ضع الكود التالي:

ap_DisableShift

خلف زر تفعيل مفتاح الشيفت ضع الكود التالي:

ap_EnableShift

 

قام بنشر
14 minutes ago, صالح حمادي said:

ربما يكون من الطابعة الإفتراضية

قم بتغيير الطابعة الإفتراضية للجهاز

اخي صالح انا عندي طابعة واحدة فقط 

قام بنشر

اخي نبيل سؤالك غير واضح هل البرنامج يشتغل على جهاز و جهاز آخر لا

أم أنه لا يشتغل أصلا إذا كان كذلك أرفق نسخة و سنحاول التعديل عليها

 

قام بنشر
20 minutes ago, صالح حمادي said:

ربما يكون من الطابعة الإفتراضية

قم بتغيير الطابعة الإفتراضية للجهاز

اخي صالح بارك الله فيك على ا الاجابة   

لقد فتحت موضوع اخر بخصوص هذا المشكل كما طلب مني وشكرااا

قام بنشر
6 دقائق مضت, nabilbibo said:

اخي صالح بارك الله فيك على ا الاجابة   

لقد فتحت موضوع اخر بخصوص هذا المشكل كما طلب مني وشكرااا

تم الجواب عليه

من هنا

 

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

سجل دخولك الان
  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information