Click here to Skip to main content
15,907,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: exe and dll Pin
amaneet17-Oct-06 23:21
amaneet17-Oct-06 23:21 
GeneralRe: exe and dll Pin
Christian Graus17-Oct-06 23:54
protectorChristian Graus17-Oct-06 23:54 
QuestionPlz help - How to access database from server in vb.Net Pin
Jats_4ru17-Oct-06 19:41
Jats_4ru17-Oct-06 19:41 
AnswerRe: Plz help - How to access database from server in vb.Net Pin
Christian Graus17-Oct-06 22:07
protectorChristian Graus17-Oct-06 22:07 
QuestionRe: Plz help - How to access database from server in vb.Net [modified] Pin
Jats_4ru18-Oct-06 2:35
Jats_4ru18-Oct-06 2:35 
QuestionTaking info from a website? Pin
JustinEng17-Oct-06 18:16
JustinEng17-Oct-06 18:16 
AnswerRe: Taking info from a website? Pin
Dave Sexton18-Oct-06 0:18
Dave Sexton18-Oct-06 0:18 
QuestionError on:user defined type not defined??- vb6 [modified] Pin
campbells17-Oct-06 16:08
campbells17-Oct-06 16:08 
I was trying to link my vb6 to the MYSQL but i got this
Error:"user defined type not defined"??
<big>Dim dbb As Database</big> <-- Error<br />
       Dim rs As Recordset<br />
       Dim strConnect As String<br />
       Dim strSQL As String<br />
       Dim strResult As String<br />
<br />
       'Set connect string.<br />
       strConnect = "ODBC;DSN=DSN_SP_TEST;"<br />
<br />
       'Open the database<br />
       Set dbb = DBEngine.Workspaces(0).OpenDatabase("", False, False, _<br />
                                                    strConnect) <br />
  'Create the stored procedure. It really does not do much.<br />
       'It simply sets the variables and returns<br />
       strSQL = "/****** Object:  Stored Procedure dbo.sp_Vendor */"<br />
       strSQL = strSQL & vbCrLf & "CREATE PROCEDURE storebo.sp_vendor"<br />
       strSQL = strSQL & vbCrLf & "/* Declare Parameters */"<br />
   <br />
strSQL = strSQL & vbCrLf & "@param1 varchar(20) ,@param2 varchar(20) ,"<br />
strSQL = strSQL & vbCrLf & "@param3 smalldatetime ,@param4 smalldatetime"<br />
strSQL = strSQL & vbCrLf & "as"<br />
strSQL = strSQL & vbCrLf & "begin"<br />
strSQL = strSQL & vbCrLf & "SELECT   dep.[name],dep.deptcode,dep.deptdesc,dep.depttotal,    (dep.DeptTotal /     (SELECT  sum(dep.depttotal)"<br />
strSQL = strSQL & vbCrLf & "FROM    (SELECT v.[name],d.deptcode,d.deptdesc, SUM(ti.totalsales) AS DeptTotal"<br />
strSQL = strSQL & vbCrLf & "FROM     item i ,vendor v,tot_item ti  INNER JOIN   dept d  ON (ti.deptcode=d.deptcode) where ti.itemcode=i.itemcode and v.vendorid=i.vendorid and v.[name]>=@param1 and v.[name]<=@param2 and ti.bizdate>=@param3 and ti.bizdate<=@param4"<br />
strSQL = strSQL & vbCrLf & "group by v.[name],d.deptcode,d.deptdesc) AS dep )) * 100 AS PercentOfSales"<br />
strSQL = strSQL & vbCrLf & "FROM    (SELECT v.[name],d.deptcode,d.deptdesc, SUM(ti.totalsales) AS DeptTotal"<br />
strSQL = strSQL & vbCrLf & "FROM     item i ,vendor v,tot_item ti  INNER JOIN   dept d  ON (ti.deptcode=d.deptcode) where ti.itemcode=i.itemcode and v.vendorid=i.vendorid and v.[name]>=@param1 and v.[name]<=@param2 and ti.bizdate>=@param3 and ti.bizdate<=@param4"<br />
strSQL = strSQL & vbCrLf & "group by v.[name],d.deptcode,d.deptdesc) AS dep"<br />
strSQL = strSQL & vbCrLf & "ORDER BY     dep.[name] ASC"<br />
End<br />
       MsgBox strSQL<br />
       db.Execute strSQL, dbSQLPassThrough<br />



-- modified at 22:16 Tuesday 17th October, 2006
AnswerRe: Error on:user defined type not defined??- vb6 Pin
Christian Graus17-Oct-06 16:09
protectorChristian Graus17-Oct-06 16:09 
GeneralRe: Error on:user defined type not defined??- vb6 Pin
campbells17-Oct-06 16:15
campbells17-Oct-06 16:15 
GeneralRe: Error on:user defined type not defined??- vb6 Pin
Dave Kreskowiak17-Oct-06 17:48
mveDave Kreskowiak17-Oct-06 17:48 
GeneralRe: Error on:user defined type not defined??- vb6 Pin
campbells17-Oct-06 17:48
campbells17-Oct-06 17:48 
GeneralRe: Error on:user defined type not defined??- vb6 Pin
Dave Kreskowiak17-Oct-06 17:56
mveDave Kreskowiak17-Oct-06 17:56 
Questionhow to click a button then mySQL will create the procedure? [urgent] Pin
campbells17-Oct-06 15:44
campbells17-Oct-06 15:44 
AnswerRe: how to click a button then mySQL will create the procedure? [urgent] Pin
Christian Graus17-Oct-06 15:55
protectorChristian Graus17-Oct-06 15:55 
QuestionVB6/WinAPI - Setting process priority to interactive Pin
darkoex17-Oct-06 14:46
darkoex17-Oct-06 14:46 
QuestionDrag and Drop file to Desktop, Email, etc. Pin
CarlMoser17-Oct-06 9:06
CarlMoser17-Oct-06 9:06 
AnswerRe: Drag and Drop file to Desktop, Email, etc. Pin
CarlMoser18-Oct-06 7:44
CarlMoser18-Oct-06 7:44 
QuestionRunning application first time after install. Pin
dptalt17-Oct-06 8:02
dptalt17-Oct-06 8:02 
AnswerRe: Running application first time after install. Pin
aparna.shukla117-Oct-06 21:35
aparna.shukla117-Oct-06 21:35 
QuestionWorking with a textbox's read only property at runtime . . . Pin
Shawn Owens17-Oct-06 6:57
Shawn Owens17-Oct-06 6:57 
AnswerRe: Working with a textbox's read only property at runtime . . . Pin
Christian Graus17-Oct-06 7:11
protectorChristian Graus17-Oct-06 7:11 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Shawn Owens17-Oct-06 7:20
Shawn Owens17-Oct-06 7:20 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Christian Graus17-Oct-06 8:09
protectorChristian Graus17-Oct-06 8:09 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Shawn Owens17-Oct-06 8:32
Shawn Owens17-Oct-06 8:32 

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.