Click here to Skip to main content
15,924,507 members
Home / Discussions / Database
   

Database

 
QuestionDatasets - linking and autonumbering Pin
csharp_boy5-Feb-06 11:09
csharp_boy5-Feb-06 11:09 
AnswerRe: Datasets - linking and autonumbering Pin
cbhkenshin6-Feb-06 1:37
cbhkenshin6-Feb-06 1:37 
QuestionVB6 ADO Pin
jlawren75-Feb-06 8:11
jlawren75-Feb-06 8:11 
AnswerRe: VB6 ADO Pin
Dave Kreskowiak5-Feb-06 8:37
mveDave Kreskowiak5-Feb-06 8:37 
GeneralRe: VB6 ADO Pin
jlawren75-Feb-06 8:43
jlawren75-Feb-06 8:43 
GeneralRe: VB6 ADO Pin
Dave Kreskowiak5-Feb-06 9:35
mveDave Kreskowiak5-Feb-06 9:35 
GeneralRe: VB6 ADO Pin
jlawren76-Feb-06 11:14
jlawren76-Feb-06 11:14 
GeneralRe: VB6 ADO Pin
Dave Kreskowiak6-Feb-06 12:03
mveDave Kreskowiak6-Feb-06 12:03 
Man, you are really confused about these object works.

You didn't perform a query against that database at all. All you did was create a blank recordset, add some columns to it, then bound the empty recordset to a datagrid.

You need to actually execute a query against the database. Something like this will return all the records in the specified table:
Dim rs As New ADODB.Recordset
Dim conn As New ADODB.Connection

conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
    "C:\Program Files\Testing\v003\databases\db1.mdb;Persist Security Info=False"

rs.CursorLocation = adUseClient

rs.Open "tableName", conn, adOpenStatic, adLockReadOnly, adCmdTable

Set DataGrid1.DataSource = rs

This probably won't run as listed. I haven't used VB6 in over 5 years now...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Questionhow can disable SSPI ? Pin
paykani4-Feb-06 22:50
paykani4-Feb-06 22:50 
Questionquery pblm Pin
Vipin.d4-Feb-06 17:41
Vipin.d4-Feb-06 17:41 
AnswerRe: query pblm Pin
dabuskol4-Feb-06 19:03
dabuskol4-Feb-06 19:03 
QuestionStored procedures ----> where do I save it Pin
intrigued4-Feb-06 8:37
intrigued4-Feb-06 8:37 
AnswerRe: Stored procedures ----> where do I save it Pin
Colin Angus Mackay4-Feb-06 9:06
Colin Angus Mackay4-Feb-06 9:06 
QuestionInsert Query -----> for datetime data type on sql server 2005 Pin
intrigued4-Feb-06 8:29
intrigued4-Feb-06 8:29 
AnswerRe: Insert Query -----> for datetime data type on sql server 2005 Pin
Colin Angus Mackay4-Feb-06 9:11
Colin Angus Mackay4-Feb-06 9:11 
QuestionAdd two columen Pin
webhay4-Feb-06 7:30
webhay4-Feb-06 7:30 
AnswerRe: Add two columen Pin
Colin Angus Mackay4-Feb-06 12:39
Colin Angus Mackay4-Feb-06 12:39 
Questionrestore a .dbf file Pin
cristina_tudor4-Feb-06 7:07
cristina_tudor4-Feb-06 7:07 
QuestionList usage of any object in any DB on Server Pin
OMalleyW4-Feb-06 6:25
OMalleyW4-Feb-06 6:25 
AnswerHay Colin Pin
OMalleyW6-Feb-06 10:32
OMalleyW6-Feb-06 10:32 
QuestionHelp with simple DataGrid.... Pin
thebison4-Feb-06 4:43
thebison4-Feb-06 4:43 
AnswerRe: Help with simple DataGrid.... Pin
intrigued4-Feb-06 8:34
intrigued4-Feb-06 8:34 
QuestionAdministrator Pin
D.N.3-Feb-06 7:06
D.N.3-Feb-06 7:06 
AnswerRe: Administrator Pin
Dave Kreskowiak3-Feb-06 13:49
mveDave Kreskowiak3-Feb-06 13:49 
QuestionRecordset AddNew fails Pin
RadioOpa3-Feb-06 2:13
RadioOpa3-Feb-06 2:13 

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.