Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Only show that user info in a form

Discussion in 'Information Technology' started by dcash45, Jul 28, 2006.

Tags:
  1. dcash45

    dcash45
    Expand Collapse
    Guest

    I am now trying to open up a form from a switchboard that only shows that
    person data based on their userID.

    Here’s the thing, the user logs in which then brings them to the switchboard
    and in one of the buttons on the switchboard is ManageOwnInfo (which open
    that form). I want the form to only show the user information that is log in.

    Another this is that Im working on 2 different database where one database
    all its form are unbound and the other database is not unbound.

    There is the code I’m working with to help me call the user own information….

    DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= UserID " &
    Forms!frmManagerMain.OpenArgs

    This is the code that calls the ManageOwnInfo form from the
    switchboard….this code Im using with the database that is still bound

    How anyone from help with this…

    Thank you,
     
  2. Loading...


  3. Rob Parker

    Rob Parker
    Expand Collapse
    Guest

    If UserID is numeric, try:
    DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= " &
    Forms!frmManagerMain.OpenArgs

    If UserID is a string, you'll need:
    DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= '" &
    Forms!frmManagerMain.OpenArgs & "'"

    HTH,

    Rob


    "dcash45" <dcash45@discussions.microsoft.com> wrote in message
    news:51990967-0882-438C-B109-084DC38532F5@microsoft.com...
    >I am now trying to open up a form from a switchboard that only shows that
    > person data based on their userID.
    >
    > Here's the thing, the user logs in which then brings them to the
    > switchboard
    > and in one of the buttons on the switchboard is ManageOwnInfo (which open
    > that form). I want the form to only show the user information that is log
    > in.
    >
    > Another this is that Im working on 2 different database where one database
    > all its form are unbound and the other database is not unbound.
    >
    > There is the code I'm working with to help me call the user own
    > information..
    >
    > DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= UserID " &
    > Forms!frmManagerMain.OpenArgs
    >
    > This is the code that calls the ManageOwnInfo form from the
    > switchboard..this code Im using with the database that is still bound
    >
    > How anyone from help with this.
    >
    > Thank you,
    >
     
  4. dcash45

    dcash45
    Expand Collapse
    Guest

    Wow......I guess I was over looking things but thanks again.

    "Rob Parker" wrote:

    > If UserID is numeric, try:
    > DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= " &
    > Forms!frmManagerMain.OpenArgs
    >
    > If UserID is a string, you'll need:
    > DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= '" &
    > Forms!frmManagerMain.OpenArgs & "'"
    >
    > HTH,
    >
    > Rob
    >
    >
    > "dcash45" <dcash45@discussions.microsoft.com> wrote in message
    > news:51990967-0882-438C-B109-084DC38532F5@microsoft.com...
    > >I am now trying to open up a form from a switchboard that only shows that
    > > person data based on their userID.
    > >
    > > Here's the thing, the user logs in which then brings them to the
    > > switchboard
    > > and in one of the buttons on the switchboard is ManageOwnInfo (which open
    > > that form). I want the form to only show the user information that is log
    > > in.
    > >
    > > Another this is that Im working on 2 different database where one database
    > > all its form are unbound and the other database is not unbound.
    > >
    > > There is the code I'm working with to help me call the user own
    > > information..
    > >
    > > DoCmd.OpenForm "frmManageUsers", acNormal, , "[UserID]= UserID " &
    > > Forms!frmManagerMain.OpenArgs
    > >
    > > This is the code that calls the ManageOwnInfo form from the
    > > switchboard..this code Im using with the database that is still bound
    > >
    > > How anyone from help with this.
    > >
    > > Thank you,
    > >

    >
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page