Joan, Thank goodness you found my post! Thanks for the tip.
If you look at the post I posted, you'll see I was using my name crifenburg
.....but look closely... <blush> I spelled my own name wrong!! So OF COURSE
IT WASN'T SHOWING ME THE BUTTONS!
Once I caught it THAT boo-boo, and one other thing I didn't know I needed to
do, such as, turn all the button's visible to "No" (False) to start with,
your suggestion worked just great!!
Solved my problem of the 4 front ends, now I only have one FE with just a
few buttons and my own set of command button menus instead of the wizard
switchboard. This was first for me, and I'm really pleased with the outcome
so far.
I had one more thing that confused me, how to exit the database with using
the Wizard Switchboard Exit application. I made a macro with "Close Form"
and "Quit" and that shuts down the database ok... but is there a better way?
Thanks again for all your help... even though I can't find my original post!
Connie
"Joan Wild" wrote:
> Hi Connie,
> Put a Debug.Print line in (as below). It sounds to me that the user you are
> testing as, is not listed in your Case statements. It's a good idea to
> include a Case Else to handle this situation.
>
> Anyway when you open the form, hit Ctrl-G and see what the debug.Print
> returns.
>
> "Connie" <(E-Mail Removed)> wrote in message
> news:F99F7CDB-BCA6-4807-9DC7-(E-Mail Removed)...
> >
> > THIS IS HOW I ACTUALLY USED IT. BUT IT'S NOT HIDING ANY OF THE BUTTONS ON
> > OPENING THE FORM.
> >
> > Private Sub Form_Open(Cancel As Integer)
>
> Debug.Print fOSUserName()
>
> > Select Case fOSUserName()
> > Case "crifenbug", "jcastendyk", "cpurnel", "bshoats"
> > Me!PremButn.Visible = True
> > Me!ProcButn.Visible = False
> > Me!EnrolButn.Visible = False
> > Case "jdoe"
> > Me!PremButn.Visible = False
> > Me!ProcButn.Visible = True
> > Me!EnrolButn.Visible = False
> > End Select
> > End Sub
>
>
>
>
> --
> Joan Wild
> Microsoft Access MVP
>
>
>
|