Click here to Skip to main content
15,915,509 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: retrive data from Database in table form Pin
jcrussell19-Dec-05 12:41
jcrussell19-Dec-05 12:41 
QuestionExperts! help in scaling the images in vb.net Pin
JUNEYT18-Dec-05 12:24
JUNEYT18-Dec-05 12:24 
AnswerSample code Pin
lijocm19-Dec-05 2:04
lijocm19-Dec-05 2:04 
GeneralRe: Sample code Pin
toxcct19-Dec-05 2:20
toxcct19-Dec-05 2:20 
GeneralRe: Sample code Pin
Dave Kreskowiak19-Dec-05 7:22
mveDave Kreskowiak19-Dec-05 7:22 
GeneralRe: Sample code Pin
jonathan1520-Dec-05 2:37
jonathan1520-Dec-05 2:37 
QuestionParametrized query on related tables - VB.NET2003 Pin
liquid_18-Dec-05 9:15
liquid_18-Dec-05 9:15 
QuestionProblem with the coding..(VB6) Pin
mellvincent18-Dec-05 5:16
mellvincent18-Dec-05 5:16 
The coding shown below is my coding to select the largest integer in 'Inventno' field which have the same 'productCode'. say, I have 3 same items in the 'productCode' field but all of them have a different inventory number. my intention is to display the largest integer of a selected product code. the problem is there is nothing happen when i execute the coding n I dont know what went wrong. Confused | :confused:

Private Sub Command6_Click()<br />
Dim strSQL As String<br />
Dim conn As ADODB.Connection<br />
Dim rs As ADODB.Recordset<br />
<br />
    Set conn = New ADODB.Connection<br />
    Set rs = New ADODB.Recordset<br />
    <br />
    conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\User\Desktop\IS\ISDB.mdb; Persist Security Info=False"<br />
<br />
    conn.Mode = adModeRead<br />
        conn.Open<br />
    <br />
    strSQL = "SELECT MAX(inventno) FROM IncomingStk WHERE ProductCode= '"&code.Text&"'"<br />
<br />
    rs.Open (strSQL), conn<br />
    conn.Close<br />
     DataGrid1.Text = rs(0).Value<br />
    <br />
    Set rs = Nothing<br />
    Set conn = Nothing<br />
    <br />
End Sub


-- modified at 11:20 Sunday 18th December, 2005
AnswerRe: Problem with the coding..(VB6) Pin
KaptinKrunch19-Dec-05 2:36
KaptinKrunch19-Dec-05 2:36 
GeneralRe: Problem with the coding..(VB6) Pin
S Douglas19-Dec-05 22:17
professionalS Douglas19-Dec-05 22:17 
AnswerRe: Problem with the coding..(VB6) Pin
S Douglas19-Dec-05 22:15
professionalS Douglas19-Dec-05 22:15 
QuestionGetting started (beginner) Pin
mellvincent18-Dec-05 3:46
mellvincent18-Dec-05 3:46 
AnswerRe: Getting started (beginner) Pin
Colin Angus Mackay18-Dec-05 5:19
Colin Angus Mackay18-Dec-05 5:19 
Questionmemory allocation Pin
_tasleem17-Dec-05 22:51
_tasleem17-Dec-05 22:51 
AnswerRe: memory allocation Pin
Colin Angus Mackay18-Dec-05 5:27
Colin Angus Mackay18-Dec-05 5:27 
QuestionOpeing a Form based on a Query Pin
R. A. Abbasi17-Dec-05 19:28
R. A. Abbasi17-Dec-05 19:28 
AnswerRe: Opeing a Form based on a Query Pin
Dave Kreskowiak18-Dec-05 11:52
mveDave Kreskowiak18-Dec-05 11:52 
GeneralRe: Opeing a Form based on a Query Pin
R. A. Abbasi18-Dec-05 13:47
R. A. Abbasi18-Dec-05 13:47 
GeneralRe: Opeing a Form based on a Query Pin
Dave Kreskowiak18-Dec-05 14:46
mveDave Kreskowiak18-Dec-05 14:46 
Questiondbf with VB.Net (2005) Pin
Rainer_4217-Dec-05 11:41
Rainer_4217-Dec-05 11:41 
AnswerRe: dbf with VB.Net (2005) Pin
Mekong River17-Dec-05 16:49
Mekong River17-Dec-05 16:49 
AnswerRe: dbf with VB.Net (2005) Pin
albCode19-Dec-05 5:01
albCode19-Dec-05 5:01 
QuestionDatabase help Pin
Binary011017-Dec-05 8:51
Binary011017-Dec-05 8:51 
AnswerRe: Database help Pin
Christian Graus17-Dec-05 22:12
protectorChristian Graus17-Dec-05 22:12 
GeneralRe: Database help Pin
jcrussell18-Dec-05 18:28
jcrussell18-Dec-05 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.