Click here to Skip to main content
15,894,291 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow Do I Use The Count Function To Determine Occurence In A Value In A Column Using Vb.Net Pin
kallymore15-Aug-14 23:04
professionalkallymore15-Aug-14 23:04 
AnswerRe: How Do I Use The Count Function To Determine Occurence In A Value In A Column Using Vb.Net Pin
Mycroft Holmes15-Aug-14 23:33
professionalMycroft Holmes15-Aug-14 23:33 
GeneralRe: How Do I Use The Count Function To Determine Occurence In A Value In A Column Using Vb.Net Pin
kallymore16-Aug-14 1:56
professionalkallymore16-Aug-14 1:56 
AnswerRe: How Do I Use The Count Function To Determine Occurence In A Value In A Column Using Vb.Net Pin
Chris Quinn17-Aug-14 21:24
Chris Quinn17-Aug-14 21:24 
GeneralRe: How Do I Use The Count Function To Determine Occurence In A Value In A Column Using Vb.Net Pin
kallymore23-Aug-14 5:43
professionalkallymore23-Aug-14 5:43 
GeneralRe: How Do I Use The Count Function To Determine Occurence In A Value In A Column Using Vb.Net Pin
Chris Quinn25-Aug-14 20:27
Chris Quinn25-Aug-14 20:27 
QuestionUsing List(Of String) property in Designer (For custom ComboBox) Pin
A3209583415-Aug-14 7:50
A3209583415-Aug-14 7:50 
Questionhi, below code I return in vb.net am getting error ,Please help me. Pin
RangappaRavi12-Aug-14 20:20
RangappaRavi12-Aug-14 20:20 
Imports dao
Imports System.Data
Imports System.Data.OleDb
Imports VB6 = Microsoft.VisualBasic
Imports Microsoft.Office.Interop
Imports System.Object
Imports Microsoft.Office.Interop.Access


Public Class Form1

Private Sub ExportOneTable()

'EXPORTS TABLE IN ACCESS DATABASE TO EXCEL
'REFERENCE TO DAO IS REQUIRED

Dim strExcelFile As String
Dim strWorksheet As String
Dim strDB As String
Dim strTable As String
Dim objDB As Database


'Change Based on your needs, or use
'as parameters to the sub
strExcelFile = "C:\Ravi\MySpreadSheet.xls"
strWorksheet = "WorkSheet1"
strDB = "C:\Ravi\SSG_INVY.mdb"
strTable = "company_details"

objDB = OpenAccess(strDB)

'If excel file already exists, you can delete it here
If Dir(strExcelFile) <> "" Then Kill(strExcelFile)

objDB.Execute( _
"SELECT * INTO [Excel 8.0;DATABASE=" & strExcelFile & _
"].[" & strWorksheet & "] FROM " & "[" & strTable & "]")
objDB.Close()
objDB = Nothing

End Sub


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ExportOneTable()
End Sub
End Class
AnswerRe: hi, below code I return in vb.net am getting error ,Please help me. Pin
Chris Quinn12-Aug-14 21:07
Chris Quinn12-Aug-14 21:07 
AnswerRe: hi, below code I return in vb.net am getting error ,Please help me. Pin
Bernhard Hiller12-Aug-14 21:08
Bernhard Hiller12-Aug-14 21:08 
QuestionRe: hi, below code I return in vb.net am getting error ,Please help me. Pin
ZurdoDev15-Aug-14 8:16
professionalZurdoDev15-Aug-14 8:16 
Questionasp.net dynamic linq query Pin
murali_utr12-Aug-14 18:56
murali_utr12-Aug-14 18:56 
AnswerRe: asp.net dynamic linq query Pin
Richard Deeming13-Aug-14 2:21
mveRichard Deeming13-Aug-14 2:21 
Questionlicensing my vb.net application (online and offline) Pin
zuber ahmed10-Aug-14 20:28
zuber ahmed10-Aug-14 20:28 
AnswerRe: licensing my vb.net application (online and offline) Pin
Eddy Vluggen11-Aug-14 7:15
professionalEddy Vluggen11-Aug-14 7:15 
QuestionLogitech G keyboard screens Pin
JR21210-Aug-14 4:37
JR21210-Aug-14 4:37 
AnswerRe: Logitech G keyboard screens Pin
Dave Kreskowiak10-Aug-14 5:04
mveDave Kreskowiak10-Aug-14 5:04 
GeneralRe: Logitech G keyboard screens Pin
JR21210-Aug-14 7:21
JR21210-Aug-14 7:21 
Questionvb.net Pin
Jyoti Padriya9-Aug-14 5:47
Jyoti Padriya9-Aug-14 5:47 
AnswerRe: vb.net Pin
Dave Kreskowiak9-Aug-14 6:20
mveDave Kreskowiak9-Aug-14 6:20 
QuestionRe: vb.net Pin
ZurdoDev15-Aug-14 8:17
professionalZurdoDev15-Aug-14 8:17 
QuestionProblem in passing arguments to cmd prompt from VB program Pin
Member 109935298-Aug-14 7:33
Member 109935298-Aug-14 7:33 
AnswerRe: Problem in passing arguments to cmd prompt from VB program Pin
Wombaticus8-Aug-14 8:27
Wombaticus8-Aug-14 8:27 
GeneralRe: Problem in passing arguments to cmd prompt from VB program Pin
Member 109935298-Aug-14 23:34
Member 109935298-Aug-14 23:34 
AnswerRe: Problem in passing arguments to cmd prompt from VB program Pin
Mike Meinz5-Sep-14 7:50
Mike Meinz5-Sep-14 7:50 

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.