|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Converting VBA to VB 2005 Express
I am having trouble re-writing the following code to work with Visual Basic 2005. Mainly I need to know what to use instead of DAO.Recordset and DBEngine(0)(0).OpenRecordset.
Public Function MainTimerDelay() As Long Dim rst As DAO.Recordset ' If timer not set If glngMainTimer = 0 Then ' Open the ztblVersion table rst = DBEngine(0)(0).OpenRecordset("ztblVersion") ' Get the MainTimerDelay field glngMainTimer = rst!MainTimerDelay ' Close the recordset rst.Close() rst = Nothing End If |
|
#2
|
|||
|
|||
|
You should probably use ADO.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Converting VBA to VB 2005 Express |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|