ryan.gillies
Registered User.
- Local time
- Tomorrow, 05:21
- Joined
- Apr 8, 2011
- Messages
- 53
Hi all, quick question here.
I've created functions in the past and been able to run them from the Switchboard by choosing Run Code from the dropdown and typing the name of the function.
Now I have two functions I want to call from the Switchboard:
I've tried entering OpenQuery("qCases") and OpenQuery(qCases) but neither open the query for me, I just get an error stating "There was an error executing the command."
Any thoughts? Thanks!
I've created functions in the past and been able to run them from the Switchboard by choosing Run Code from the dropdown and typing the name of the function.
Now I have two functions I want to call from the Switchboard:
Code:
Public Function OpenTable(t As String)
DoCmd.OpenTable t, acViewNormal, acEdit
End Function
Public Function OpenQuery(q As String)
DoCmd.OpenQuery q, acViewPivotTable, acReadOnly
End Function
Any thoughts? Thanks!