unwanted parameter value box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • razjafry
    New Member
    • Sep 2007
    • 30

    #1

    unwanted parameter value box

    Hi Experts,
    I am using a form for lot of info regarding registration. When I press close button, Enter Parameter Value box shows up asking me to put in value for OrgID.Exact wording there is Form!frmGala!in tOrgID.
    I am still new to VBA and have no clue why is that and what to do to get rid of it.
    I appreciate all the help.
    Thanks,
    Syed
  • MindBender77
    New Member
    • Jul 2007
    • 233

    #2
    Originally posted by razjafry
    Hi Experts,
    I am using a form for lot of info regarding registration. When I press close button, Enter Parameter Value box shows up asking me to put in value for OrgID.Exact wording there is Form!frmGala!in tOrgID.
    I am still new to VBA and have no clue why is that and what to do to get rid of it.
    I appreciate all the help.
    Thanks,
    Syed
    It sounds like the close button runs a query but, when the query is trying to run it can't determine what the OrgID field is.

    My suggestion would be to open the form up in design view right click on the button to bring up its properties and view the code in the OnClick event. This should determine which query its trying to run.

    I would then view the query in design view and try trouble-shooting it from there.

    Hope this points you in the right directions,
    JS

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      Mindbender's suggestion about a query running certainly sounds on the money. If the close button you're using is a custom close button, check the code in the button's OnClick event as suggested. If nothing is found there, or if the close button you speak of is the standard Access close button, also look in the code in the Form_BeforeUpda te or Form_Close events as well.

      Linq ;0)>

      Comment

      • razjafry
        New Member
        • Sep 2007
        • 30

        #4
        Thanks a lot for your reply

        Comment

        • brainfood
          New Member
          • Jul 2008
          • 1

          #5
          If the above procedures don't work try these:
          launch the Close button's OnClick event and type this before "DoCmd.Clos e"
          command line:"DoCmd.Res tore" .
          for example:
          Private Sub CloseButton_Cli ck()
          On Error GoTo Err_CloseButton _Click

          DoCmd.Restore
          DoCmd.Close


          Exit_CloseButto n_Click:
          Exit Sub

          Err_CloseButton _Click:
          MsgBox Err.Description
          Resume Exit_CloseButto n_Click

          End Sub

          Comment

          Working...