Howdy, Stranger!

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

Categories

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

  • btsebbtseb Member Posts: 67
    : 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.
  • dmcghee05dmcghee05 Member Posts: 8
    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.