how do i get a macro/code to open a specific switchboard page

  • Follow


hi

i have four switchboards (patient, staff, lists, accounts) with patient 
being default

but i need to open the staff switchboard using either a macro or VBA

thanks
0
Reply Utf 3/9/2010 5:26:01 PM

I assume by "switchboard", you are referring to an Access form which is 
designed to function as a switchboard-type menu.

This line in a VBA procedure will open the specified form.

DoCmd.OpenForm "staff"

There are additional arguments which can be used to control how the form 
opens. Search Access Help for more details.

Where and how you use this, of course, depends and where and how you want to 
open the staff switchboard.

I suppose you can do this with a macro as well.



"Booksbio15" <Booksbio15@discussions.microsoft.com> wrote in message 
news:76D6EF6A-4650-4A7C-9A53-C1EC1FCB77B3@microsoft.com...
> hi
>
> i have four switchboards (patient, staff, lists, accounts) with patient
> being default
>
> but i need to open the staff switchboard using either a macro or VBA
>
> thanks 

0
Reply George 3/9/2010 5:58:23 PM


Switchboards are forms so you ought to be able to use the OpenForm method to 
open the Staff switchboard. Put the following code in the Click event of a 
button:
DoCmd.OpemForm "Staff"

This assumes the staff switchboard is named Staff.

Steve
santus@penn.com



"Booksbio15" <Booksbio15@discussions.microsoft.com> wrote in message 
news:76D6EF6A-4650-4A7C-9A53-C1EC1FCB77B3@microsoft.com...
> hi
>
> i have four switchboards (patient, staff, lists, accounts) with patient
> being default
>
> but i need to open the staff switchboard using either a macro or VBA
>
> thanks 


0
Reply Steve 3/9/2010 6:04:41 PM

"Booksbio15" <Booksbio15@discussions.microsoft.com> wrote in message 
news:76D6EF6A-4650-4A7C-9A53-C1EC1FCB77B3@microsoft.com...
> hi
>
> i have four switchboards (patient, staff, lists, accounts) with patient
> being default
>
> but i need to open the staff switchboard using either a macro or VBA
>
> thanks 

0
Reply De 3/13/2010 5:33:54 PM

fhhjjjjk;kk

"Booksbio15" <Booksbio15@discussions.microsoft.com> a écrit dans le message 
de groupe de discussion : 
76D6EF6A-4650-4A7C-9A53-C1EC1FCB77B3@microsoft.com...
> hi
>
> i have four switchboards (patient, staff, lists, accounts) with patient
> being default
>
> but i need to open the staff switchboard using either a macro or VBA
>
> thanks 

0
Reply joelgeraldine 3/17/2010 1:18:46 PM

4 Replies
791 Views

(page loaded in 0.102 seconds)

Similiar Articles:
















7/26/2012 2:18:35 AM


Reply: