D
dhauck
I'd like to indirectly reference a function...
if docmd.runcode functionVariable was allowed, I would be set....
Public Function Do_This(My_Thing As String, My_Type As String)
Select Case UCase(My_Type)
Case "FORM"
DoCmd.OpenForm My_Thing, acNormal, , , acFormEdit, acWindowNormal
...
Case "REPORT"
DoCmd.OpenReport My_Thing, acViewPreview
Case "CODE"
docmd.runcode My_Thing
...
Here is the rub. Docmd.runcode is not allowed...
if docmd.runcode functionVariable was allowed, I would be set....
Public Function Do_This(My_Thing As String, My_Type As String)
Select Case UCase(My_Type)
Case "FORM"
DoCmd.OpenForm My_Thing, acNormal, , , acFormEdit, acWindowNormal
...
Case "REPORT"
DoCmd.OpenReport My_Thing, acViewPreview
Case "CODE"
docmd.runcode My_Thing
...
Here is the rub. Docmd.runcode is not allowed...