Hey~
It's Annabelle again and really appreciate for people who answered my previous VBA questions. Saved my life a lot of times~~
This time I am working on a drop down list... which opens forms that users desire. Im having difficulty linking those form names with the OpenForm commend.
The code I had is like this:
Would someone please help me~ Big thanks in advance!!
Annabelle
It's Annabelle again and really appreciate for people who answered my previous VBA questions. Saved my life a lot of times~~
This time I am working on a drop down list... which opens forms that users desire. Im having difficulty linking those form names with the OpenForm commend.
The code I had is like this:
Code:
Private Sub Form_Open(Cancel As Integer)
Dim fobj As AccessObject
With Me![cmdForms]
.RowSourceType = "Value List"
For Each fobj In CurrentProject.AllForms
.AddItem obj.Name
Next
End With
End Sub
Private Sub cmdForms_AfterUpdate()
DoCmd.OpenForm Me.cmdForms, acViewNormal
End Sub
Annabelle
Comment