Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need syntax help
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00360545
Message ID:
00360951
Views:
7
>I have combed the texts available to me. There are no examples that seem to fit my situation as most are pulling the from cursors created by sql statements as a command in the dataenvironment rather than looking directly into an existing table.
>

I you can access data this way. You need a recordset. A recordset can be created using a command (like what you read) or directly by code:
Private Sub Command1_Click()
Dim rstData As ADODB.Recordset
Dim tmpcmnd As String

'Open the connection
dbfDataEnv.dbfConn.Open

Set rstData = New ADODB.Recordset
rstData.ActiveConnection = dbfDataEnv.dbfConn
rstData.Open "Select * from cmdlist"

tmpcmnd = rstData!cmnd
rstData.Close
Set rstData = Nothing
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform