• Using DoCmd to set a value

    Author
    Topic
    #355833

    Access help files says that you can set value for a control by using DoCmd function, however it doesn’t tell me how? There is no SetValue object for VBA.

    Thanks in advance!

    Viewing 0 reply threads
    Author
    Replies
    • #525626

      Hi Brent,
      I think the help files are a little misleading on this! They say that you use docmd to run actions in VBA, and that actions are such things as closing windows, opening forms and setting the value of controls. However, it goes on to say that there is no DoCmd method corresponding to setvalue. This shouldn’t really affect you as you can simply set the value of a control directly – for example, Me!txtTextBox1 = “Hello”
      Hope that helps.

    Viewing 0 reply threads
    Reply To: Using DoCmd to set a value

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: