getting data from form to form

This seems like it should be simple and might be me overlooking something, but how would I go about getting an ID stored in my main form's label to go to another form's label?
i.e.
frmMain CustomerId needs to be transfered to frmAddCustomer's Cid label

Comments

  • : This seems like it should be simple and might be me overlooking something, but how would I go about getting an ID stored in my main form's label to go to another form's label?
    : i.e.
    : frmMain CustomerId needs to be transfered to frmAddCustomer's Cid label
    :
    :
    Try:
    [code]Form2Label.Caption = Form1Label.Caption
    Form2.Show()[/code]

    or:
    Create a module, store the variables in there and then they will be visible to all forms in your project.
  • Thank you,
    Dom



    : : This seems like it should be simple and might be me overlooking something, but how would I go about getting an ID stored in my main form's label to go to another form's label?
    : : i.e.
    : : frmMain CustomerId needs to be transfered to frmAddCustomer's Cid label
    : :
    : :
    : Try:
    : [code]Form2Label.Caption = Form1Label.Caption
    : Form2.Show()[/code]
    :
    : or:
    : Create a module, store the variables in there and then they will be visible to all forms in your project.
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories