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

غلط فى الكود


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

السادة المحترمون سلام الله عليكم 

مش عارف ايه  الغلط فى الكود ده 

Private Sub cbotype_AfterUpdate()
Dim ctype As String
ctype = "select* from tbl_customers where ( [ type ]  = ' " & Me.cbotype & "')"
Me.customers_subform.Form.RecordSource = cbotype
Me.customers_subform.Form.Requery
End Sub

New Microsoft Access Database (2).rar

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

تفضل أخي

Dim ctype As String
ctype = "select* from tbl_customers where ([type]='" & Me.cbotype & "')"
Me.customers_subform.Form.RecordSource = ctype
Me.customers_subform.Form.Requery

للعلم أخي.. القيمة الموجودة في مربع التحرير والسرد بها قيمة مختلفة عن الموجودة بالجدول؛ فمثلا (كبير المعلمين) مكتوبة بالجدول بدون مسافة (كبيرالمعلمين)

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

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.

×
×
  • اضف...

Important Information