עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

שימוש במשפטי SQL בVB

Featured Replies

פורסם

שלום רב!

יש לי טופס שנראה ככה:

15ra1.jpg

עכשיו אני רוצה שמישהו ייכנס לטופס הזה, יכניס לשתי הtextbox-ים ערך של מוצא וערך של יעד וכאשר הוא ילחץ "חפש", יופיעו בdatagrid למטה כל השורות במסד הנתונים שלי (ACCESS) אשר בשדה ה"departure" שלהם מופיע הערך שהוזן לתיבה הראשונה ובשדה הdestination שלהם מופיעה הערך שהוזן לתיבה השנייה.

אני כבר יודע איך להתחבר למסד נתונים ולשלוח ערכים וכל זה... והבנתי שכדי לעשות את מה שאני צריך אני צריך את השורה הבאה:

Set rst = Flights.OpenRecordset("select * from Flights where departure=text1.text and destination=text2.text ")

זה נכון לעשות ככה בכלל?

עכשיו ברגע שבחרתי כבר הכל, איך אני יכול לגרום לכל מה שנבחר להופיע בdatagrid?

תודה.

פורסם

Set rst = Flights.OpenRecordset("select * from Flights where departure=text1.text and destination=text2.text ")

טעות נפוצה

אתה צריך לעשות ככה:


Set rst = Flights.OpenRecordset("select * from Flights where departure='" & text1.text & "' and destination='" & text2.text & "' ")

פורסם
  • מחבר

כן הבנתי את זה בכל מקרה תודה אבל איך אני מציג את הנתונים בDATAGRID (הטבלה)

הבנתי אני צריך לעשות ככה:

Dim strQuery As String
strQuery = "select * from Flights where departure='" & text1.text & "' and destination='" & text2.text & "' "
Adodc1.RecordSource = strQuery
Adodc1.Refresh

אבל יש לי בעיה בשורה Adodc1.Refresh וזה מציג error

method refresh of object 1adodc failed

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.