Results 1 to 3 of 3

Thread: Saving the current field

  1. #1
    Join Date
    Mar 2003
    Location
    N. Ireland
    Posts
    12

    Saving the current field

    This should be simple but as usual MS help can't answer the most simple of questions.

    I have a form with a button. When the button is pressed it requeries the form. Unfortunately if a control in the form is being edited before the button is pressed it says I can't requery the form until the current field has been saved.
    In VB is there a command to update/save a control?

    Thanks for you time.

  2. #2
    Join Date
    Mar 2003
    Location
    N. Ireland
    Posts
    12
    I've found a solution

    sendkeys "+{enter}",true

    Is there not a better way of doing this?

  3. #3
    Join Date
    Oct 2002
    Location
    Indiana USA
    Posts
    79
    Try this

    DoCmd.RunCommand acCmdSaveRecord

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •