T
tina
hi folks,
i'm using the following code to build a listbox control's RowSource, on a
form's Load event. it's a two-column listbox, first column being the object
name of certain forms in the database (not including the form that's
loading), and second column being the Caption of each form, as
Private Sub isRowSource()
Dim frm As AccessObject, str As String, db As Object
Set db = Application.CurrentProject
For Each frm In db.AllForms
If Left(frm.Name, 1) = "s" And InStr(frm.Name, "_") = False Then
str = str & frm.Name & ";" & frm.Caption & ";"
End If
Next
Me!lstTable.RowSource = str
End Sub
the frm.Name reference works fine, but obviously the frm.Caption reference
is bogus. how can i retrieve the value of the Caption property of a form
that is not currently open? or is it not possible?
tia, tina
i'm using the following code to build a listbox control's RowSource, on a
form's Load event. it's a two-column listbox, first column being the object
name of certain forms in the database (not including the form that's
loading), and second column being the Caption of each form, as
Private Sub isRowSource()
Dim frm As AccessObject, str As String, db As Object
Set db = Application.CurrentProject
For Each frm In db.AllForms
If Left(frm.Name, 1) = "s" And InStr(frm.Name, "_") = False Then
str = str & frm.Name & ";" & frm.Caption & ";"
End If
Next
Me!lstTable.RowSource = str
End Sub
the frm.Name reference works fine, but obviously the frm.Caption reference
is bogus. how can i retrieve the value of the Caption property of a form
that is not currently open? or is it not possible?
tia, tina