queries/switchboard manager??

thunderstorm

Registered User.
Local time
Today, 18:30
Joined
Jan 16, 2004
Messages
18
how do i add queries into a form of my switchboard using the manager? what option is it? thanks
 
thunderstorm said:
how do i add queries into a form of my switchboard using the manager? what option is it? thanks

do you mean you want to load a query from the switchboard, or include information from a query on the switchboard?

if you want to load a query from your switchboard, you have to either use a macro or VBA, suggest VBA though because macros produce errors easily:

Code:
Function runQry()
On Error GoTo runQry_Err

    DoCmd.OpenQuery "QUERYNAME", acViewNormal, acEdit


runQry_Exit:
    Exit Function

runQry_Err:
    Resume runQry_Exit

End Function

then in the switchboard manager select Run Code and in Function Name put "runQry".

obviously change QUERYNAME to read the name of your query to run.

HTH

dd/mm/yy
 

Users who are viewing this thread

Back
Top Bottom