LearningVB
MIS
Hello,
I am quiet new to this, but I am learning it step by step and by my self. This forum is a great benefit for me in this situation too.
Up to now I have used datagrids to this type of problems but now I want to try using a matrix to help me, and to do so I will need a little help from someone (hopefully I get what I need from this forum).
I want to store some data from an SQL-server into a matrix by using this SQL-sentence:
strSQL = "SELECT ProdNo, ProdName, AltProdNo FROM Dekl_MovexProduct WHERE Status = 20"
To store this data I have defined a class like this:
Public lngProductNo As Long
Public strProductName As String
Public lngAltProductNo As Long
This again I will store in this matrix:
Dim tabProductInfo() As clsProduct
And here it all stops. I have surfed the web for tips and hints but nothing is working. So is there someone out there who can give me a tips of how I can store the data from my sql-sentence into my matrix?
Best regards
Edvard
I am quiet new to this, but I am learning it step by step and by my self. This forum is a great benefit for me in this situation too.
Up to now I have used datagrids to this type of problems but now I want to try using a matrix to help me, and to do so I will need a little help from someone (hopefully I get what I need from this forum).
I want to store some data from an SQL-server into a matrix by using this SQL-sentence:
strSQL = "SELECT ProdNo, ProdName, AltProdNo FROM Dekl_MovexProduct WHERE Status = 20"
To store this data I have defined a class like this:
Public lngProductNo As Long
Public strProductName As String
Public lngAltProductNo As Long
This again I will store in this matrix:
Dim tabProductInfo() As clsProduct
And here it all stops. I have surfed the web for tips and hints but nothing is working. So is there someone out there who can give me a tips of how I can store the data from my sql-sentence into my matrix?
Best regards
Edvard