اذهب الي المحتوي
أوفيسنا

كود تنقل تلقائي بين السجلات


mr steev

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

تستطيع استعمال مثل هذا الكود:

dim rst as dao.recordset
set rst=me.recordsetclone
rst.movelast:rst.movefirst
rc=rst.recordcount

for i=1 to rc

docmd.GoToRecord,,acNext

next i

docmd.GoToRecord,,acFirst

 

 

جعفر

 

 

كتبت الكود بدون تدقيق ،

الكود سيبدأ العمل من السجل الحالي ، لذا سيعطيك خطأ عند وصوله الى آخر سجل ، بينما الكود لجميع الحقول ،

فيا انك تعمل له امر لوقف رسالة الخطا ، مثل On error resume next ،

او قبل For ، تطلب من الكود الذهاب الى او سجل ، هكذا: 

docmd.GoToRecord,,acFirst

 

جعفر

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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

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

Important Information