Visual Basic (VB and VBA)

Copyright 1999-2001 Christopher Greaves. All rights reserved.
Home Page and email to [email protected]
If in doubt, record a macro and inspect the entrails!

 

 

Please read the DISCLAIMER.

Here is an INDEX to all the procedures.

You will probably need one copy of my GLOBAL DECLARATIONS.



Public Function rstOpenRecordset(dbs As Database, strSelect As String) As Recordset
    Set rstOpenRecordset = dbs.OpenRecordset(strSelect)
'Private Sub TESTrstOpenRecordset()
'    Dim wrk As Workspace
'    Set wrk = wrkCreateWorkspace("", "admin", "")
'    Dim dbs As Database
'    Set dbs = dbsOpenDatabase(wrk, strTemplatePath(), "utilities.mdb")
'    Dim rst As Recordset
'    Set rst = rstOpenRecordset(dbs, "SELECT * from Utilities") ' given table
'    MsgBox rst.Fields.Count & " fields/columns"
'    rst.MoveLast
'    rst.MoveFirst
'    MsgBox rst.RecordCount & " records/rows"
'    Call CloseRecordset(rst)
'    Call CloseDatabase(dbs)
'End Sub
End Function

We all knew nothing when we started …
Home Page and Contact Information
Send email to [email protected].
This page was last updated Thursday, November 15, 2001

 

 

Hosted by www.Geocities.ws

1

Visual Basic (VB and VBA)

Copyright 1999-2001 Christopher Greaves. All rights reserved.
Home Page and email to [email protected]
If in doubt, record a macro and inspect the entrails!

 

 

Please read the DISCLAIMER.

Here is an INDEX to all the procedures.

You will probably need one copy of my GLOBAL DECLARATIONS.

Public Function rstOpenRecordset(dbs As Database, strSelect As String) As Recordset
    Set rstOpenRecordset = dbs.OpenRecordset(strSelect)
'Private Sub TESTrstOpenRecordset()
'    Dim wrk As Workspace
'    Set wrk = wrkCreateWorkspace("", "admin", "")
'    Dim dbs As Database
'    Set dbs = dbsOpenDatabase(wrk, strTemplatePath(), "utilities.mdb")
'    Dim rst As Recordset
'    Set rst = rstOpenRecordset(dbs, "SELECT * from Utilities") ' given table
'    MsgBox rst.Fields.Count & " fields/columns"
'    rst.MoveLast
'    rst.MoveFirst
'    MsgBox rst.RecordCount & " records/rows"
'    Call CloseRecordset(rst)
'    Call CloseDatabase(dbs)
'End Sub
End Function

We all knew nothing when we started …
Home Page and Contact Information
Send email to [email protected].
This page was last updated Thursday, November 15, 2001

 

 

Hosted by www.Geocities.ws

1