Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get list of reports for snapshot exportation automation (From vb6)

Status
Not open for further replies.

Emitter

Programmer
Jul 27, 2001
1
US
Hello everybody :^)

Heres my problem.
I'm writing a VB6 app that uses the access objects to export repots with SNP. what I need is to find a collection/recordset/array to step through and get each report's name.

Tried these things:

Set RS = ConnectionObject.OpenSchema(acXXX)
' acXXX means I tried every resonable constant


Using ADOX to step through objects ;^)


Endlesly searched through the Access 9.0 object :^(

I really don't care how bizzarre the code anybody comes up with is O.K? API/DDE Whatever!

Emitter79@home.com

 
Private Sub Find_Reports()
Dim DBS
Set DBS = CurrentDb()
Dim Doc
For Each Doc In DBS.Containers("Reports").Documents
MsgBox Doc.Name 'Or whatever you want to do here...
Next Doc
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top