Click here to Skip to main content
15,924,317 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to make a drop down menu cross frameset Pin
Julianne_juju31-Mar-06 15:44
Julianne_juju31-Mar-06 15:44 
QuestionNewbie Question: Loading Forms Pin
ThePmanLives31-Mar-06 15:19
ThePmanLives31-Mar-06 15:19 
AnswerRe: Newbie Question: Loading Forms Pin
Chatura Dilan31-Mar-06 15:59
Chatura Dilan31-Mar-06 15:59 
QuestionEvents Button Pin
MarkMokris31-Mar-06 10:28
MarkMokris31-Mar-06 10:28 
AnswerRe: Events Button Pin
Dave Kreskowiak31-Mar-06 13:19
mveDave Kreskowiak31-Mar-06 13:19 
QuestionResize jpeg files Pin
Dennis Huisman31-Mar-06 5:59
Dennis Huisman31-Mar-06 5:59 
Questiongettinig insert error and need help Pin
MeterMan31-Mar-06 5:53
MeterMan31-Mar-06 5:53 
AnswerRe: gettinig insert error and need help Pin
Paradise Bride31-Mar-06 6:35
Paradise Bride31-Mar-06 6:35 
try this....

in ur code page in the top of the page wrie
Imports System.Data.oledb

like this...
Imports System.Data.oledb<br />
Public Class Form1<br />
    Inherits System.Windows.Forms.Form

and in ur button
Protected Sub btnCommit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCommit.Click<br />
  <br />
        Dim MySql As as new oledbcommand<br />
mysql.Connection = OleDbConnection1<br />
        oledbconnection1.Open() ' open connection<br />
<br />
my sql.commandtext = "Insert into ExpenseReport _ <br />
             (DateRow1,WhomRow1,CCardAmountRow1,PCardAmountRow1,CashAmount,VehicleNumRow1,ProjectnameRow1, _ <br />
             TypeofExpenseRow1) values( "  tbxDate.Text.ToString & "," & tbxWhom.Text.ToString & "," & _ <br />
             tbxCCard.Text.ToString & "," & tbxPCard.Text & "," & tbxCash.Text & "," & tbxVehicle.Text & "," & _ <br />
             tbxProject.Text.ToString & "," & ddnExpense.SelectedValue.ToString)<br />
  <br />
        mysql.ExecuteNonQuery()<br />
       oledbconnection1.close()<br />
            End Sub<br />
End Class<br />

that if u create ur connectin by the wizard and as i know the wizard allready will give u name of ur connection as (oledbconnection1)

i hope that will workSmile | :)

rusashksa@yahoo.com
Sally<<<>>>tAkE mE 2 uR pAraDiSe<<<>>>Sally
GeneralRe: gettinig insert error and need help Pin
MeterMan31-Mar-06 8:38
MeterMan31-Mar-06 8:38 
AnswerRe: gettinig insert error and need help Pin
Dave Kreskowiak31-Mar-06 9:23
mveDave Kreskowiak31-Mar-06 9:23 
GeneralRe: gettinig insert error and need help Pin
MeterMan31-Mar-06 16:22
MeterMan31-Mar-06 16:22 
Questiondealing with more than table Pin
Paradise Bride31-Mar-06 5:02
Paradise Bride31-Mar-06 5:02 
QuestionCalling unmanaged function Pin
mosquitooth31-Mar-06 4:45
mosquitooth31-Mar-06 4:45 
Questionbarcode scanner Pin
SVb.net31-Mar-06 3:30
SVb.net31-Mar-06 3:30 
AnswerRe: barcode scanner Pin
J4amieC31-Mar-06 3:43
J4amieC31-Mar-06 3:43 
Question[Message Deleted] Pin
campbells31-Mar-06 2:42
campbells31-Mar-06 2:42 
GeneralRe: cant add data to access??? Pin
Guffa31-Mar-06 4:37
Guffa31-Mar-06 4:37 
AnswerRe: cant add data to access??? Pin
Vikrant Badhai31-Mar-06 21:07
Vikrant Badhai31-Mar-06 21:07 
GeneralRe: cant add data to access??? Pin
MohammadAmiry31-Mar-06 22:25
MohammadAmiry31-Mar-06 22:25 
QuestionRemoving Visual Studio 2003 Pin
MatthysDT31-Mar-06 1:43
MatthysDT31-Mar-06 1:43 
AnswerRe: Removing Visual Studio 2003 Pin
CWIZO31-Mar-06 2:17
CWIZO31-Mar-06 2:17 
GeneralRe: Removing Visual Studio 2003 Pin
MatthysDT31-Mar-06 2:26
MatthysDT31-Mar-06 2:26 
GeneralRe: Removing Visual Studio 2003 Pin
J4amieC31-Mar-06 2:33
J4amieC31-Mar-06 2:33 
GeneralRe: Removing Visual Studio 2003 Pin
Dave Kreskowiak31-Mar-06 5:35
mveDave Kreskowiak31-Mar-06 5:35 
GeneralRe: Removing Visual Studio 2003 Pin
MatthysDT2-Apr-06 20:27
MatthysDT2-Apr-06 20:27 

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.