Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 8:40
offroaderdan22-Dec-09 8:40 
GeneralRe: Database search in vb6 Pin
Eddy Vluggen22-Dec-09 9:39
professionalEddy Vluggen22-Dec-09 9:39 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 10:59
offroaderdan22-Dec-09 10:59 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 11:09
offroaderdan22-Dec-09 11:09 
GeneralRe: Database search in vb6 Pin
Md. Marufuzzaman22-Dec-09 11:22
professionalMd. Marufuzzaman22-Dec-09 11:22 
GeneralRe: Database search in vb6 Pin
Eddy Vluggen22-Dec-09 11:57
professionalEddy Vluggen22-Dec-09 11:57 
GeneralRe: Database search in vb6 Pin
offroaderdan22-Dec-09 23:24
offroaderdan22-Dec-09 23:24 
GeneralRe: Database search in vb6 Pin
Eddy Vluggen23-Dec-09 0:39
professionalEddy Vluggen23-Dec-09 0:39 
offroaderdan wrote:
I ma probably doing something wrong but just want to clarify. Table name is the access file? or is it the table you have but in vb6?


It's the name of the table, as it appears in the Access-file. Click on the Access-file one, hold down shirt, and double-click. That should open the database. The should be a list of tables. You can test your SELECT statement directly in Access, by creating a new Query.


offroaderdan wrote:
And the First_Name is the column you want to search?


Yup Smile | :)

I'd go for something like this;
VB.NET
Dim con As New ADODB.Connection
Dim cmd As New ADODB.Command
Dim rst As ADODB.Recordset

con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Northwind.mdb;User Id=admin;Password=;"
con.Open

cmd.CommandText = "SELECT * FROM [Employees]"
cmd.CommandType = adCmdText
cmd.ActiveConnection = con.ConnectionString

Set rst = cmd.Execute
 ' Proces here :)

rst.Close
con.Close

Set rst = Nothing
Set cmd = Nothing
Set con = Nothing


I are Troll Suspicious | :suss:

GeneralRe: Database search in vb6 Pin
offroaderdan23-Dec-09 7:20
offroaderdan23-Dec-09 7:20 
Question[Message Deleted] Pin
manisghouri22-Dec-09 5:06
manisghouri22-Dec-09 5:06 
AnswerRe: Technical documentation of a software [modified] Pin
Dr.Walt Fair, PE22-Dec-09 5:48
professionalDr.Walt Fair, PE22-Dec-09 5:48 
QuestionWriting the content of a text file Pin
hvgyufg28fh38tyr78hf22-Dec-09 2:38
hvgyufg28fh38tyr78hf22-Dec-09 2:38 
AnswerRe: Writing the content of a text file Pin
Ashfield22-Dec-09 2:42
Ashfield22-Dec-09 2:42 
AnswerRe: Writing the content of a text file Pin
Luc Pattyn22-Dec-09 2:42
sitebuilderLuc Pattyn22-Dec-09 2:42 
AnswerRe: Writing the content of a text file Pin
#realJSOP22-Dec-09 4:09
professional#realJSOP22-Dec-09 4:09 
GeneralRe: Writing the content of a text file Pin
hvgyufg28fh38tyr78hf22-Dec-09 5:23
hvgyufg28fh38tyr78hf22-Dec-09 5:23 
GeneralRe: Writing the content of a text file Pin
#realJSOP22-Dec-09 8:27
professional#realJSOP22-Dec-09 8:27 
AnswerRe: Writing the content of a text file [modified] Pin
plecco22-Dec-09 8:41
plecco22-Dec-09 8:41 
Questionupdate data? Pin
cotdot1111122-Dec-09 1:33
cotdot1111122-Dec-09 1:33 
AnswerRe: update data? Pin
Vimalsoft(Pty) Ltd22-Dec-09 2:30
professionalVimalsoft(Pty) Ltd22-Dec-09 2:30 
AnswerRe: update data? Pin
The Man from U.N.C.L.E.22-Dec-09 7:06
The Man from U.N.C.L.E.22-Dec-09 7:06 
AnswerRe: update data? [modified] Pin
plecco22-Dec-09 8:44
plecco22-Dec-09 8:44 
QuestionHow to fetch cell value in MsFlex Grid in vb6.0? URGENT Pin
Ashish Kumar Vyas21-Dec-09 23:01
Ashish Kumar Vyas21-Dec-09 23:01 
AnswerRe: How to fetch cell value in MsFlex Grid in vb6.0? URGENT Pin
Eddy Vluggen21-Dec-09 23:22
professionalEddy Vluggen21-Dec-09 23:22 
GeneralRe: How to fetch cell value in MsFlex Grid in vb6.0? URGENT Pin
Ashish Kumar Vyas21-Dec-09 23:25
Ashish Kumar Vyas21-Dec-09 23:25 

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.