Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15483

VS 2019 Display query result in data grid view

$
0
0
Hello all , I am very new to visual studio and i am very interested in learning vb.net language even though i don't have much of programming experience.
I am creating a winform app for data entry connected to a access-db as source.
I have a data grid box in form2(name:reminder) which will pop up when clicked on a button in form1(name:MSdies).
In this form2 data-grid box i just want view the query results i have created as below SQL :
Code:

SELECT        ID, [Size in mg], [Die head number], [Inspection Date], [Next Calibration Date], [Die size in microns]
FROM            MSdies
WHERE        ([Next Calibration Date] < NOW())

originally the table contains these details
Code:

SELECT        ID, [Size in mg], [Die head number], [Inspection Date], [Next Calibration Date], [Die size in microns], [Condition of DIE-1], [Condition of DIE-2], [Condition of DIE-3], [Condition of DIE-4], [Condition of DIE-5], [Condition of DIE-6],[Condition of DIE-7], Observations, Inspector
FROM  MSdies

Can anyone help me with this how can i achieve the same by step wise explanation.
for database name & details
Code:

    Private Sub Reminder_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.MSdiesTableAdapter.Fill(Me.TrialdatabaseDataSet.MSdies)
    End Sub

I have attached images too for your reference.Name:  Capture.jpg
Views: 46
Size:  31.2 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 15483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>