Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to extract the Timevalue between two date
Message
 
To
11/05/2002 13:42:25
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00655190
Message ID:
00655948
Views:
20
My recommendation is that you move away from the data enviroment and start exploring the ADO data access model more. I started with the DE also but I did not have the flexibility I have with just writing the SQL statement and either executing it or returning a recordset against it. Try a starter like

Dim cnn as ADODB.Connection
Dim rst as ADODb.Recordset
Dim strSQL as String

set cnn= New ADODB.Connection
Set rst = New ADODB.Recordset

cnn.ConnectionString = "MSDASQL.1;Persist Security Info=False;Data Source=Test"

cnn.Open

strSQL = " SELECT nlTest, tTest, dDate "
strSQL = strSQL & " FROM Test "

rst.Open strSQL,cnn

do until rst.EOF
msgbox nltest & vbcrlf & tTest & vbcrlf & dDate, vbOkOnly,"This is the info"

Loop

rst.close

set rst = nothing
set cnn = nothing

Give it a try and maybe you will understand how much more powerful it is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform